Skip to content

Commit b28da73

Browse files
committed
unit test reworked
1 parent 3402a8e commit b28da73

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

unit-tests/py/rspy/repo.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ def find_built_exe( source, name ):
6666
"""
6767
if platform.system() != 'Linux':
6868
name += '.exe'
69-
import sys
70-
for p in sys.path:
69+
paths = os.environ.get('PATH')
70+
for p in paths.split(os.pathsep):
7171
exe = os.path.join( p, name )
7272
if os.path.isfile( exe ):
7373
return exe

unit-tests/run-unit-tests.py

100644100755
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!python3
1+
#!/usr/bin/python3
22

33
# License: Apache 2.0. See LICENSE file in root directory.
44
# Copyright(c) 2021 RealSense, Inc. All Rights Reserved.

0 commit comments

Comments
 (0)