command "python gladefilename.py" returns errors
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Gladex |
Fix Committed
|
Medium
|
Christopher Pax |
Bug Description
To replicate this bug,
1. Open gladex, load example, set output directory to Desktop and hit excute.
2. Open a terminal and change the directory to that folder, Desktop. (cd ~/Desktop)
3. Try running the example like this. ($: python example.py)
the fallowing error displays:
Traceback (most recent call last):
File "example.py", line 11, in <module>
compile(
File "/usr/lib/
f = open(file, 'U')
IOError: [Errno 2] No such file or directory: '/example_
The solution. when you execute the code like this: $: python example.py
os.path.
the solution here is to say.
gpath = os.path.
if gpath == "": gpath = "."
this will make the compile line (as you see in the error), and other lines, look like this:
"./example_
Changed in gladex: | |
assignee: | nobody → paxmanchris |
importance: | Undecided → Medium |
milestone: | none → 0.4 |
status: | New → In Progress |
fix in 0.4 revision 145 and in trunk 156