Skip to content

Commit cd20189

Browse files
committed
Fix - file not found
1 parent 60fe41c commit cd20189

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tgpt/utils.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88

99
default_path = appdir.user_cache_dir
1010

11+
if not os.path.exists(default_path):
12+
os.makedirs(default_path)
1113

1214
class Optimizers:
1315
@staticmethod
@@ -166,8 +168,7 @@ class AwesomePrompts:
166168
awesome_prompt_path = os.path.join(default_path, "all-acts.json")
167169

168170
def __init__(self):
169-
if not os.path.exists(default_path):
170-
os.makedirs(default_path)
171+
pass
171172

172173
@property
173174
def all_acts(self) -> dict:

0 commit comments

Comments
 (0)