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

View File

@ -169,6 +169,7 @@ def getspfiles(model_dimension: int):
#==================================================================# #==================================================================#
def getusfiles(long_desc=False): def getusfiles(long_desc=False):
lst = [] lst = []
os.makedirs(path.dirname(path.realpath(__file__))+"/userscripts", exist_ok=True)
for file in listdir(path.dirname(path.realpath(__file__))+"/userscripts"): for file in listdir(path.dirname(path.realpath(__file__))+"/userscripts"):
if file.endswith(".lua"): if file.endswith(".lua"):
ob = {} ob = {}