Skip to content

Commit 2665f5b

Browse files
fix: use VirtualModule with custom name in CLI
VirtualModule allows specifying both module name and schema name, while virtual_schema() uses schema name for both. The CLI needs custom module names for the -s flag, so use VirtualModule directly. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 612511d commit 2665f5b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/datajoint/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def cli(args: list = None):
6161
if kwargs["schemas"]:
6262
for vm in kwargs["schemas"]:
6363
d, m = vm.split(":")
64-
mods[m] = dj.virtual_schema(d)
64+
mods[m] = dj.VirtualModule(m, d)
6565

6666
banner = "dj repl\n"
6767
if mods:

0 commit comments

Comments
 (0)