Skip to content

Commit

Permalink
🐛 STILL! f#ing macs
Browse files Browse the repository at this point in the history
  • Loading branch information
runxel committed Jun 7, 2019
1 parent 2fb7d10 commit 86d253f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion GDL.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def check_system():
operating system of the user.
"""
if sys.platform.startswith('darwin'): # OSX
return "Contents/MacOS/LP_XMLConverter.app/Contents/MacOS/LP_XMLConverter"
return "/Contents/MacOS/LP_XMLConverter.app/Contents/MacOS/LP_XMLConverter"
elif sys.platform.startswith('win'): # Windows
return "/LP_XMLConverter.exe"
else:
Expand Down Expand Up @@ -140,6 +140,7 @@ def show_quick_panel(self, options, done):
def run_hsf(self, ):
converter = self.AC_path + self.os
cmd = [converter, "libpart2hsf", self.cmdargs, self.file_to_convert, self.project_folder] # cmd, source, dest
cmd = list(filter(None, cmd)) # filters out the empty cmdargs. otherwise Macs get hiccups. sigh.
log.debug("GDL Command run: " + " ".join(cmd))
execCMD = {"cmd": cmd}

Expand Down Expand Up @@ -228,6 +229,7 @@ def show_quick_panel(self, options, done):
def run_libpart(self):
converter = self.AC_path + self.os
cmd = [converter, "hsf2libpart", self.cmdargs, self.folder_to_convert, self.gsm_name] # cmd, source, dest
cmd = list(filter(None, cmd)) # filters out the empty cmdargs. otherwise Macs get hiccups. sigh.
log.debug("GDL Command run: " + " ".join(cmd))
execCMD = {"cmd": cmd}

Expand Down

0 comments on commit 86d253f

Please sign in to comment.