Skip to content

Commit fedc30a

Browse files
committed
Fix python running locally on linux
1 parent 6b70f33 commit fedc30a

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

tests/yup_python/yup_ScriptPython.cpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ TEST_F (ScriptPythonTest, RunPythonTests)
102102
import sys
103103
104104
sys.path.append('{{root_path}}/lib/python{{version}}/site-packages')
105+
sys.path.append('{{root_path}}/local/lib/python{{version}}/site-packages')
105106
106107
package = 'pytest'
107108
@@ -117,11 +118,6 @@ TEST_F (ScriptPythonTest, RunPythonTests)
117118
finally:
118119
sys.argv = old_argv
119120
120-
os.system('ls -la {{root_path}}')
121-
os.system('ls -la {{root_path}}/lib')
122-
os.system('ls -la {{root_path}}/lib/python{{version}}')
123-
os.system('ls -la {{root_path}}/lib/python{{version}}/site-packages')
124-
125121
import pytest
126122
127123
pytest.main(['-x', '{{test_path}}', '-vvv'])

0 commit comments

Comments
 (0)