Skip to content

Commit 8ef03b1

Browse files
Merge pull request #292 from IBM/fix/custom_path
No default custom path
2 parents 3b3418a + 48958b9 commit 8ef03b1

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

terratorch/cli_tools.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -394,10 +394,11 @@ def instantiate_classes(self) -> None:
394394
elif hasattr(self.config, "predict") and hasattr(self.config.predict, "custom_modules_path"):
395395
custom_modules_path = self.config.predict.custom_modules_path
396396
else:
397-
default_path = Path(".") / "custom_modules"
398-
custom_modules_path = os.environ.get("TERRATORCH_CUSTOM_MODULE_PATH", default_path)
397+
logger.info("No custom module is being used.")
398+
custom_modules_path = None
399399

400-
import_custom_modules(custom_modules_path)
400+
if custom_modules_path:
401+
import_custom_modules(custom_modules_path)
401402

402403
def build_lightning_cli(
403404
args: ArgsType = None,

0 commit comments

Comments
 (0)