Skip to content

Commit

Permalink
Merge branch 'update_init' into 'master'
Browse files Browse the repository at this point in the history
Update how initilize remove some dirs



See merge request !30
  • Loading branch information
LucianoPC committed Aug 7, 2016
2 parents f5f904a + 9968f8b commit 080a99d
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions apprecommender/initialize.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,15 @@ def prepare_data(self):

try:
if os.path.exists(self.config.base_dir):
shutil.rmtree(self.config.base_dir)
if os.path.exists(self.config.user_data_dir):
shutil.rmtree(self.config.user_data_dir)

if os.path.exists(self.config.axi_desktopapps):
shutil.rmtree(self.config.axi_desktopapps)

if os.path.exists(self.config.filters_dir):
shutil.rmtree(self.config.filters_dir)

os.makedirs(self.config.base_dir)
os.makedirs(self.config.filters_dir)
except OSError:
raise
Expand Down

0 comments on commit 080a99d

Please sign in to comment.