mirror of
https://github.com/vladmandic/automatic
synced 2026-09-18 16:54:33 +02:00
lycoris, strong linting, model keyword, circular imports
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
import json
|
||||
import os
|
||||
import sys
|
||||
import modules.shared as shared
|
||||
import modules.errors as errors
|
||||
|
||||
|
||||
@@ -11,7 +10,7 @@ localizations = {}
|
||||
def list_localizations(dirname):
|
||||
localizations.clear()
|
||||
return localizations
|
||||
|
||||
"""
|
||||
for file in os.listdir(dirname):
|
||||
fn, ext = os.path.splitext(file)
|
||||
if ext.lower() != ".json":
|
||||
@@ -23,7 +22,7 @@ def list_localizations(dirname):
|
||||
for file in scripts.list_scripts("localizations", ".json"):
|
||||
fn, ext = os.path.splitext(file.filename)
|
||||
localizations[fn] = file.path
|
||||
|
||||
"""
|
||||
|
||||
def localization_js(current_localization_name):
|
||||
fn = localizations.get(current_localization_name, None)
|
||||
|
||||
Reference in New Issue
Block a user