summaryrefslogtreecommitdiff
path: root/client/populate.py
diff options
context:
space:
mode:
Diffstat (limited to 'client/populate.py')
-rw-r--r--client/populate.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/client/populate.py b/client/populate.py
index d1cbb80..e871f26 100644
--- a/client/populate.py
+++ b/client/populate.py
@@ -1,10 +1,11 @@
# -*- coding: utf-8-*-
+import os
import re
from getpass import getpass
import yaml
from pytz import timezone
import feedparser
-
+import jasperpath
def run():
profile = {}
@@ -105,7 +106,9 @@ def run():
# write to profile
print("Writing to profile...")
- outputFile = open("profile.yml", "w")
+ if not os.path.exists(jasperpath.CONFIG_PATH):
+ os.makedirs(jasperpath.CONFIG_PATH)
+ outputFile = open(jasperpath.config("profile.yml"), "w")
yaml.dump(profile, outputFile, default_flow_style=False)
print("Done.")