mirror of
https://github.com/KoboldAI/KoboldAI-Client.git
synced 2025-02-02 18:46:48 +01:00
Create userscripts folder if it doesn't exist
This commit is contained in:
parent
82e149ee02
commit
d870f193b2
@ -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 = {}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user