from ... import * is only allowed at module level
This commit is contained in:
parent
5b3a7bed93
commit
4c971a92db
1 changed files with 2 additions and 2 deletions
|
|
@ -1490,8 +1490,8 @@ class Settings(object):
|
|||
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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue