Skip to content

Commit 86d253f

Browse files
committed
🐛 STILL! f#ing macs
1 parent 2fb7d10 commit 86d253f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

GDL.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)