SimpleBool, Python Package
<p>I have been trying to use SimpleBool, which uses Python Language. I downloaded the python scripts to use SimpleBool.When I tried to execute the Python file Boolmutation, I get the following error:</p>

<pre><code>%run "/home/JPJ/Priya_Ph.D/simple_bool/simplebool/SimpleBool-master   /BoolMutation.py"
</code></pre>

<hr>

<pre><code>IOError                                   Traceback (most recent call   last)
/home/JPJ/Priya_Ph.D/simple_bool/simplebool/SimpleBool-master /BoolMutation.py in &lt;module&gt;()
   383         para=ParaParser(sys.argv[1])
   384     except:
--&gt; 385         para=ParaParser('mutation.in')
   386     simu_mutation(para)

/home/JPJ/Priya_Ph.D/simple_bool/simplebool/SimpleBool-master/BoolMutation.py in ParaParser(ParaFile)
   254             }  # define parameters
   255
 --&gt; 256     for each_line in open(ParaFile).readlines():
   257         para_name = each_line.split('=')[0].strip()
   258         para_value = each_line.split('=')[1].strip()

IOError: [Errno 2] No such file or directory: 'mutation.in' 
</code></pre>

<p>I have pasted a portion of the script below:</p>

<pre><code>for each_line in open(ParaFile).readlines():
   para_name = each_line.split('=')[0].strip()
   para_value = each_line.split('=')[1].strip()
   if para_name in INPUT.keys():
   INPUT[para_name] = para_value
   else:
   print "Error: Unknown Parameters: %s" % para_name
   # formalize parameters
</code></pre>

<p>Should I formalize parameters here? I am learning Python so pls help me to understand the problem here.
Thank you
Regards
Priya</p>

<p>In Python in general and in Canopy in particular, you cannot assume that your current directory is the same as the directory where the script that you are running is located. But without looking at this package, it seems likely that it does make such an assumption. If so, you can do so with the "Keep Directory Synced to Editor" command, described in the User Guide at <a href="http://docs.enthought.com/canopy/quick-start/code_editor.html#change-directory" rel="nofollow">http://docs.enthought.com/canopy/quick-start/code_editor.html#change-directory</a></p>

python python-2.7 boolean enthought canopy