1. Richard Jones
  2. Andrew

Commits

Richard Jones  committed 9a68c4f

make the project dir if it does not exist

  • Participants
  • Parent commits 958454e
  • Branches master

Comments (0)

Files changed (1)

File Andrew.py

View file
  • Ignore whitespace
 
     def on_done4(self, text):
         self.foldername = text
+        if not os.path.exists(text):
+            os.mkdirs(text)
         settings = sublime.load_settings('Andrew.sublime-settings')
         command = os.path.join(settings.get('android_sdk_path'), "tools", "android")
         cmd_a = command + " create project --target " + self.version + " --path " + self.foldername + " --activity " + self.activity + " --package " + self.package