fixed boxes.py to work on both linux and windows
This commit is contained in:
parent
b5b2179c8c
commit
4086288044
@ -1,4 +0,0 @@
|
|||||||
#!/usr/bin/python3
|
|
||||||
# EASY-INSTALL-SCRIPT: 'boxes==0.9','boxes'
|
|
||||||
__requires__ = 'boxes==0.9'
|
|
||||||
__import__('pkg_resources').run_script('boxes==0.9', 'boxes')
|
|
0
extensions/fablabchemnitz/boxes.py/boxes.exe
Normal file → Executable file
0
extensions/fablabchemnitz/boxes.py/boxes.exe
Normal file → Executable file
@ -35,10 +35,7 @@ class boxesPyWrapper(inkex.GenerateExtension):
|
|||||||
if os.path.exists(box_file):
|
if os.path.exists(box_file):
|
||||||
os.remove(box_file) #remove previously generated box file at the beginning
|
os.remove(box_file) #remove previously generated box file at the beginning
|
||||||
|
|
||||||
if os.name == "nt":
|
cmd = "boxes" #boxes.exe in this local dir (or if present in %PATH%), or boxes from $PATH in linux
|
||||||
cmd = "boxes.exe"
|
|
||||||
else:
|
|
||||||
cmd = "./boxes"
|
|
||||||
for arg in vars(self.options):
|
for arg in vars(self.options):
|
||||||
if arg != "output" and arg != "ids" and arg != "selected_nodes":
|
if arg != "output" and arg != "ids" and arg != "selected_nodes":
|
||||||
#inkex.utils.debug(str(arg) + " = " + str(getattr(self.options, arg)))
|
#inkex.utils.debug(str(arg) + " = " + str(getattr(self.options, arg)))
|
||||||
|
Reference in New Issue
Block a user