Skip to content

Commit

Permalink
fix pluginDB creation error on first start
Browse files Browse the repository at this point in the history
  • Loading branch information
Lynx187 authored and Lynx187 committed Apr 30, 2016
1 parent ca0a2e7 commit 8899cc2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions resources/lib/handler/pluginHandler.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ def getAvailablePluginsFromDB(self):
return plugins

def __updatePluginDB(self, data):
if not os.path.exists(self.profilePath):
os.makedirs(self.profilePath)
file = open(self.pluginDBFile, 'w')
json.dump(data,file)
file.close()
Expand Down

0 comments on commit 8899cc2

Please sign in to comment.