Phyton Export Skritp, wrong paths... (WINDOWS)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
JessyInk |
Triaged
|
Medium
|
Hannes Hochreiner |
Bug Description
The script has funny absolute paths!
sys.path.
and the function for finding the command is crucial otherwise the script does not work:
with the new python2.7(folder ) (renamed to python) inside the inkscape folder
# Function to try and find the correct command to invoke Inkscape.
def findInkscapeCom
commands = []
commands.
# commands.
commands.
for command in commands:
proc = subprocess.
stdout_value, stderr_value = proc.communicate()
if proc.returncode == 0:
return command
return None
proc = subprocess. Popen(command + " --without-gui --version", shell=True, stdout= subprocess. PIPE, stderr= subprocess. PIPE)
I REMOVED THE brackets [] in this command
and in another one above in the code, where the layer gets exportet :-)