Skip to content

Commit 8d720d0

Browse files
committed
Revert "unit test reworked"
This reverts commit b28da73.
1 parent b28da73 commit 8d720d0

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-
paths = os.environ.get('PATH')
70-
for p in paths.split(os.pathsep):
69+
import sys
70+
for p in sys.path:
7171
exe = os.path.join( p, name )
7272
if os.path.isfile( exe ):
7373
return exe

unit-tests/run-unit-tests.py

100755100644
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/python3
1+
#!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)