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

This commit is contained in:
Gina Häußge committed 2017-01-13 14:17:39 +01:00
1 parent 5b3a7bed93
commit 4c971a92db
1 file changed
+2 -2
+2 -2
View File
@@ -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: