summaryrefslogtreecommitdiff
path: root/osx/generate.py
diff options
context:
space:
mode:
Diffstat (limited to 'osx/generate.py')
-rw-r--r--osx/generate.py15
1 files changed, 12 insertions, 3 deletions
diff --git a/osx/generate.py b/osx/generate.py
index 6d73e28..e76a291 100644
--- a/osx/generate.py
+++ b/osx/generate.py
@@ -45,9 +45,18 @@ RULEFILE = os.path.join(here, 'bitmask.pf.conf')
VPN_UP = os.path.join(here, 'client.up.sh')
VPN_DOWN = os.path.join(here, 'client.down.sh')
-os.makedirs(APP_PATH + "/Contents/MacOS", exist_ok=True)
-os.makedirs(APP_PATH + "/Contents/Resources", exist_ok=True)
-os.makedirs(APP_PATH + "/Contents/helper", exist_ok=True)
+try:
+ os.makedirs(APP_PATH + "/Contents/MacOS")
+except:
+ pass
+try:
+ os.makedirs(APP_PATH + "/Contents/Resources")
+except:
+ pass
+try:
+ os.makedirs(APP_PATH + "/Contents/helper")
+except:
+ pass
vardict = {
'entrypoint': ENTRYPOINT,