Skip to content
Snippets Groups Projects
Commit 83887812 authored by inso's avatar inso
Browse files

Fixing bug when launching the client for the first time

parent 4c4e8408
No related branches found
No related tags found
No related merge requests found
......@@ -66,10 +66,6 @@ class Application(object):
self.load_cache(account)
def load(self):
if not os.path.exists(config.parameters['home']):
logging.info("Creating home directory")
os.makedirs((config.parameters['home']))
if (os.path.exists(config.parameters['data'])
and os.path.isfile(config.parameters['data'])):
logging.debug("Loading data...")
......
......@@ -7,7 +7,7 @@ Created on 7 févr. 2014
import logging
from logging import FileHandler
from optparse import OptionParser
from os import environ, path
from os import environ, path, makedirs
if "XDG_CONFIG_HOME" in environ:
......@@ -22,6 +22,10 @@ else:
parameters = {'home': path.join(config_path, 'cutecoin'),
'data': path.join(config_path, 'cutecoin', 'data')}
if not path.exists(parameters['home']):
logging.info("Creating home directory")
makedirs((parameters['home']))
def parse_arguments(argv):
parser = OptionParser()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment