Create userscripts folder if it doesn't exist

This commit is contained in:
Gnome Ann 2021-12-13 02:33:36 -05:00
parent 82e149ee02
commit d870f193b2
1 changed files with 1 additions and 0 deletions

View File

@ -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 = {}