Skip to content
Permalink
Browse files

from ... import * is only allowed at module level

  • Loading branch information...
foosel committed Jan 13, 2017
1 parent 5b3a7be commit 4c971a92db5bd724583da9e5c2cd4f670dd40d68
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/octoprint/settings.py
@@ -1490,8 +1490,8 @@ def saveScript(self, script_type, name, script):
def _default_basedir(applicationName):
# taken from http://stackoverflow.com/questions/1084697/how-do-i-store-desktop-application-data-in-a-cross-platform-way-for-python
if sys.platform == "darwin":
from appdirs import *
return user_data_dir(applicationName, "")
import appdirs
return appdirs.user_data_dir(applicationName, "")
elif sys.platform == "win32":
return os.path.join(os.environ["APPDATA"], applicationName)
else:

0 comments on commit 4c971a9

Please sign in to comment.
You can’t perform that action at this time.