@@ -14,7 +14,7 @@ def check_system():
1414 operating system of the user.
1515 """
1616 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"
1818 elif sys .platform .startswith ('win' ): # Windows
1919 return "/LP_XMLConverter.exe"
2020 else :
@@ -140,6 +140,7 @@ def show_quick_panel(self, options, done):
140140 def run_hsf (self , ):
141141 converter = self .AC_path + self .os
142142 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.
143144 log .debug ("GDL Command run: " + " " .join (cmd ))
144145 execCMD = {"cmd" : cmd }
145146
@@ -228,6 +229,7 @@ def show_quick_panel(self, options, done):
228229 def run_libpart (self ):
229230 converter = self .AC_path + self .os
230231 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.
231233 log .debug ("GDL Command run: " + " " .join (cmd ))
232234 execCMD = {"cmd" : cmd }
233235
0 commit comments