From d870f193b2f3da72473880add816f6746eabede7 Mon Sep 17 00:00:00 2001 From: Gnome Ann <> Date: Mon, 13 Dec 2021 02:33:36 -0500 Subject: [PATCH] Create userscripts folder if it doesn't exist --- fileops.py | 1 + 1 file changed, 1 insertion(+) diff --git a/fileops.py b/fileops.py index 01f5828b..e5697553 100644 --- a/fileops.py +++ b/fileops.py @@ -169,6 +169,7 @@ def getspfiles(model_dimension: int): #==================================================================# def getusfiles(long_desc=False): lst = [] + os.makedirs(path.dirname(path.realpath(__file__))+"/userscripts", exist_ok=True) for file in listdir(path.dirname(path.realpath(__file__))+"/userscripts"): if file.endswith(".lua"): ob = {}