fixed problem with not creating dir

This commit is contained in:
jeena 2013-02-21 21:28:43 +01:00
parent e670f8733b
commit 188fb58975

View file

@ -60,7 +60,8 @@ class Controller(QtCore.QObject):
QtCore.QObject.__init__(self) QtCore.QObject.__init__(self)
self.app = app self.app = app
os.path.expanduser("~/.bungloo/") if not os.path.exists(os.path.expanduser("~/.bungloo/")):
os.makedirs(os.path.expanduser("~/.bungloo/"))
self.config_path = os.path.expanduser('~/.bungloo/bungloo.cfg') self.config_path = os.path.expanduser('~/.bungloo/bungloo.cfg')
if os.access(self.config_path, os.R_OK): if os.access(self.config_path, os.R_OK):