Skip to content

Commit

Permalink
Added setting for path (Swoffa#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
Swoffa authored Oct 18, 2018
1 parent 261143e commit 393921d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions kickass_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,8 @@ def createExecDict(self, sourceDict, buildMode, settings):
# arguments given.
args = sublime.expand_variables (extendedDict, variables)

# Reset path to unexpanded
if tmpPath:
args['path'] = tmpPath
# Reset path to unexpanded add path addition from settings
args['path'] = self.getPathDelimiter().join([tmpPath, settings.getSetting("kickass_path")])

return args

Expand All @@ -65,6 +64,9 @@ def addPrePostVarsToDict(self, sourceDict, buildMode):
sourceDict.get('env').update(prePostEnvVars)
return sourceDict

def getPathDelimiter(self):
return ";" if platform.system()=='Windows' else ":"

def getExt(self):
return "bat" if platform.system()=='Windows' else "sh"

Expand Down

0 comments on commit 393921d

Please sign in to comment.