create user extensions directory if not exists

This commit is contained in:
Max Audron 2023-01-25 18:18:55 +01:00
parent 6b3981c068
commit 23a9d5e273

View File

@ -10,6 +10,8 @@ extensions = []
extensions_dir = os.path.join(paths.data_path, "extensions")
extensions_builtin_dir = os.path.join(paths.script_path, "extensions-builtin")
if not os.path.exists(extensions_dir):
os.makedirs(extensions_dir)
def active():
return [x for x in extensions if x.enabled]