Skip to content

Commit

Permalink
Created config dir if it does not exist
Browse files Browse the repository at this point in the history
  • Loading branch information
oravidov committed Feb 1, 2022
1 parent ca4d860 commit 8d07111
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tracking/anonymous_tracking.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ def init(self):
self.anonymous_user_id = anonymous_user_id_file.read()
else:
self.anonymous_user_id = str(uuid.uuid4())
if not os.path.exists(self.config.config_dir):
os.makedirs(self.config.config_dir)
with open(anonymous_user_id_file_name, 'w') as anonymous_user_id_file:
anonymous_user_id_file.write(self.anonymous_user_id)

Expand Down

0 comments on commit 8d07111

Please sign in to comment.