Skip to content

Commit e2b177c

Browse files
committedApr 22, 2024
Merge branch 'dev'
2 parents e84703b + e837124 commit e2b177c

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed
 

‎CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## 1.9.2
2+
3+
### Extensions and API:
4+
* restore 1.8.0-style naming of scripts
5+
16
## 1.9.1
27

38
### Minor:

‎extensions-builtin/hypertile/scripts/hypertile_xyz.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from modules import scripts
22
from modules.shared import opts
33

4-
xyz_grid = [x for x in scripts.scripts_data if x.script_class.__module__ == "scripts.xyz_grid"][0].module
4+
xyz_grid = [x for x in scripts.scripts_data if x.script_class.__module__ == "xyz_grid.py"][0].module
55

66
def int_applier(value_name:str, min_range:int = -1, max_range:int = -1):
77
"""

‎modules/script_loading.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,7 @@
88

99

1010
def load_module(path):
11-
module_name, _ = os.path.splitext(os.path.basename(path))
12-
full_module_name = "scripts." + module_name
13-
module_spec = importlib.util.spec_from_file_location(full_module_name, path)
11+
module_spec = importlib.util.spec_from_file_location(os.path.basename(path), path)
1412
module = importlib.util.module_from_spec(module_spec)
1513
module_spec.loader.exec_module(module)
1614

0 commit comments

Comments
 (0)