windows commands not running due to dict

Bug #1286413 reported by As Af
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Phatch
New
Undecided
Unassigned

Bug Description

i was trying to run a blender command;
i received a cryptic "error 6" message;
i debugged, and realied several things:

at "blender.py"
line 339: out, err = system.shell((self.exe, '-v'))
the variable "self.exe" is later used in file "system.py" as an argument to supbrocess.open()
supbrocess.open() expects a string;

the problem is that self.exe, at line 339, is a dictionary, not a string.

i couldn't understand the code responsible for this; so i can't report the exact culprit.

to work around that, i changed the code:
line 339 - old: out, err = system.shell((self.exe, '-v'))
line 339 - new: out, err = system.shell((self.exe['blender'], '-v'))

after that i realized that the path is passed with double-quotes, e.g. (the extra spaces are just for visibility in this bug report)
   ' " c:\program files\blender\blender.exe " '

so i changed it to
    self.exe['blender'] = self.exe['blender'].replace('"', '')

(eventually it didn't work out anyway, due to incompatible version :\ i have 2.69, which is not yet supported in phatch --- but thanks for the program anyway)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.