Skip to content

Commit 07f9dd0

Browse files
committed
Use Scripts dir on Windows not bin as on POSIX
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
1 parent f6977c5 commit 07f9dd0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_extractcode_cli.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,14 @@ def run_extract(options, expected_rc=None, cwd=None):
4343
"""
4444
Run extractcode as a plain subprocess. Return rc, stdout, stderr.
4545
"""
46-
cmd_loc = os.path.join(project_root, 'tmp', 'bin', 'extractcode')
46+
bin_dir = 'Scripts' if on_windows else 'bin'
47+
cmd_loc = os.path.join(project_root, 'tmp', bin_dir, 'extractcode')
4748
args = [cmd_loc] + options
4849
result = subprocess.run(args,
4950
stderr=subprocess.PIPE,
5051
stdout=subprocess.PIPE,
5152
cwd=cwd,
5253
universal_newlines=True,
53-
# encoding='utf-8',
5454
)
5555

5656
if expected_rc is not None and result.returncode != expected_rc:

0 commit comments

Comments
 (0)