Skip to content

Commit

Permalink
fix creation of bin-directory (Swoffa#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
4ch1m authored and Swoffa committed Oct 15, 2018
1 parent a113e9f commit 805e26f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion kickass_build.py
Expand Up @@ -99,7 +99,13 @@ def run(self, **kwargs):
hasPreCommand = glob.glob(preCommand)
hasPostCommand = glob.glob(postCommand)

os.makedirs("bin", exist_ok=True)
# os.makedirs() caused trouble with Python versions < 3.4.1 (see https://docs.python.org/3/library/os.html#os.makedirs);
# to avoid abortion (on UNIX-systems) here, we simply wrap the call with a try-except
# (the "bin"-directory will be generated anyway via the output-parameter in the compile-command)
try:
os.makedirs("bin", exist_ok=True)
except:
pass

self.window.run_command('exec', self.createExecDict(kwargs, buildMode, settings))

Expand Down

0 comments on commit 805e26f

Please sign in to comment.