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:
@@ -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())
|
||||
|
||||
|
||||
Reference in New Issue
Block a user