My plugin resides in the packages folder under Packages/PluginX. When I try to create a folder named PluginX in the Packages/PluginX folder I get en error:
File "./python3.3/os.py", line 251, in makedirs
File "./python3.3/os.py", line 262, in makedirs
PermissionError: [Errno 13] Permission denied: 'PluginX'
My Code:
def plugin_loaded():
command = TestCommand()
class TestCommand(sublime_plugin.ApplicationCommand):
def __init__(self):
self.createPaths()
def createPaths(self):
project_name = 'PluginX'
project_path = os.path.join(sublime.packages_path(), project_name)
if not os.path.exists(project_path):
os.makedirs(project_path)