Skip to content

Commit aea8eb7

Browse files
committed
Executing shell commands with python venv. Fix
1 parent cecdb46 commit aea8eb7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/simod/utilities.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ def nearest_divisor_for_granularity(granularity: int) -> int:
179179

180180

181181
def run_shell_with_venv(args: list):
182-
venv_path = os.environ.get('VIRTUAL_ENV', Path.cwd() / '../../venv')
183-
args[0] = str(venv_path / 'bin' / args[0])
182+
venv_path = os.environ.get('VIRTUAL_ENV', str(Path.cwd() / '../../venv'))
183+
args[0] = os.path.join(venv_path, 'bin', args[0])
184184
print_step(f'Executing shell command: {args}')
185185
os.system(' '.join(args))

0 commit comments

Comments
 (0)