Skip to content
This repository was archived by the owner on Jul 2, 2025. It is now read-only.

Commit c31cd9c

Browse files
committed
add pwd/cwd to pythonpath
1 parent 1a74224 commit c31cd9c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

sc_client/cli.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
from importlib.util import module_from_spec, spec_from_file_location
22

33
import click
4+
import sys
5+
import os
46

57
from .mainloop import start_mainloop
68
from .project_init import init_project
@@ -35,6 +37,8 @@ def run(host, port, reservation, room, file, setup, calculate_move, on_result):
3537
if reservation is not None and room is not None:
3638
raise click.UsageError('Either use \'--reservation\' or \'--room\'.')
3739

40+
sys.path.insert(0, os.getcwd())
41+
3842
logic_spec = spec_from_file_location('logic', file)
3943
logic = module_from_spec(logic_spec)
4044
logic_spec.loader.exec_module(logic)

0 commit comments

Comments
 (0)