import/regex fix

fix: Changed to use relative imports
* The current import method causes import failures if the path name of a custom node changes (import failures occur when a new manager is introduced)

fix: Incorrect use of `\` in regex strings
* From Python 3.12 onwards, using the `\` character without explicitly using regex strings like r'\' is treated as a syntax error
This commit is contained in:
Dr.Lt.Data
2024-07-06 10:31:03 +09:00
parent 421853ea2e
commit 2ed987364b
4 changed files with 27 additions and 27 deletions
+3 -3
View File
@@ -10,10 +10,10 @@ onebuttonprompt_path = os.path.join(custom_nodes_path, "OneButtonPrompt")
sys.path.append(onebuttonprompt_path)
from build_dynamic_prompt import *
from csv_reader import *
from .build_dynamic_prompt import *
from .csv_reader import *
from one_button_presets import OneButtonPresets
from .one_button_presets import OneButtonPresets
OBPresets = OneButtonPresets()
allpresets = [OBPresets.RANDOM_PRESET_OBP] + list(OBPresets.opb_presets.keys())