Skip to content

Commit

Permalink
should fix recursion issue
Browse files Browse the repository at this point in the history
  • Loading branch information
TNTwise committed May 23, 2024
1 parent cf46353 commit 7c65e31
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/misc/createDirectories.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import os
from src.programData.thisdir import thisdir
homedir = os.path.expanduser(r"~")


def createDirectories():

os.makedirs(
os.path.join(f"{thisdir()}"),
exist_ok=True,
Expand Down
1 change: 1 addition & 0 deletions src/programData/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ def readSettings(self):
if setting in ["OutputDir", "RenderDir"] and not os.path.exists(
getattr(self, setting)
):
os.makedirs(default_value,exist_ok=True)
log(
f"This most likely means the output directory does not exist, in which create {homedir}/Videos, or you do not have permission to output there.\nEither set the output directory {homedir}/Videos or allow permission for the new directory."
)
Expand Down

0 comments on commit 7c65e31

Please sign in to comment.