@@ -14,7 +14,7 @@ def check_system():
14
14
operating system of the user.
15
15
"""
16
16
if sys .platform .startswith ('darwin' ): # OSX
17
- return "Contents/MacOS/LP_XMLConverter.app/Contents/MacOS/LP_XMLConverter"
17
+ return "/ Contents/MacOS/LP_XMLConverter.app/Contents/MacOS/LP_XMLConverter"
18
18
elif sys .platform .startswith ('win' ): # Windows
19
19
return "/LP_XMLConverter.exe"
20
20
else :
@@ -140,6 +140,7 @@ def show_quick_panel(self, options, done):
140
140
def run_hsf (self , ):
141
141
converter = self .AC_path + self .os
142
142
cmd = [converter , "libpart2hsf" , self .cmdargs , self .file_to_convert , self .project_folder ] # cmd, source, dest
143
+ cmd = list (filter (None , cmd )) # filters out the empty cmdargs. otherwise Macs get hiccups. sigh.
143
144
log .debug ("GDL Command run: " + " " .join (cmd ))
144
145
execCMD = {"cmd" : cmd }
145
146
@@ -228,6 +229,7 @@ def show_quick_panel(self, options, done):
228
229
def run_libpart (self ):
229
230
converter = self .AC_path + self .os
230
231
cmd = [converter , "hsf2libpart" , self .cmdargs , self .folder_to_convert , self .gsm_name ] # cmd, source, dest
232
+ cmd = list (filter (None , cmd )) # filters out the empty cmdargs. otherwise Macs get hiccups. sigh.
231
233
log .debug ("GDL Command run: " + " " .join (cmd ))
232
234
execCMD = {"cmd" : cmd }
233
235
0 commit comments