We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3597b55 commit 5d21501Copy full SHA for 5d21501
2 files changed
launch.py
@@ -82,7 +82,7 @@ def load_custom_modules():
82
and os.path.splitext(module_path)[1] != ".py"
83
):
84
continue
85
- if module_path.endswith(".disabled"):
+ if module_path.endswith("_disabled"):
86
87
time_before = time.perf_counter()
88
success = load_custom_module(module_path)
threestudio/__init__.py
@@ -3,7 +3,12 @@
3
4
def register(name):
5
def decorator(cls):
6
- __modules__[name] = cls
+ if name in __modules__:
7
+ raise ValueError(
8
+ f"Module {name} already exists! Names of extensions conflict!"
9
+ )
10
+ else:
11
+ __modules__[name] = cls
12
return cls
13
14
return decorator
0 commit comments