FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
cpython/PC/testpy.py at master · python-emscripten/cpython · GitHub
python-emscripten
cpython
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
cpython
/
PC
/
testpy.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
30 lines (25 loc) · 831 Bytes
Breadcrumbs
cpython
/
PC
/
testpy.py
Copy path
File metadata and controls
30 lines (25 loc) · 831 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
import
sys
# This is a test module for Python. It looks in the standard
# places for various *.py files. If these are moved, you must
# change this module too.
try
:
import
os
except
:
print
(
"""Could not import the standard "os" module.
Please check your PYTHONPATH environment variable."""
)
sys
.
exit
(
1
)
try
:
import
symbol
except
:
print
(
"""Could not import the standard "symbol" module. If this is
a PC, you should add the dos_8x3 directory to your PYTHONPATH."""
)
sys
.
exit
(
1
)
for
dir
in
sys
.
path
:
file
=
os
.
path
.
join
(
dir
,
"os.py"
)
if
os
.
path
.
isfile
(
file
):
test
=
os
.
path
.
join
(
dir
,
"test"
)
if
os
.
path
.
isdir
(
test
):
# Add the "test" directory to PYTHONPATH.
sys
.
path
=
sys
.
path
+
[
test
]
import
libregrtest
# Standard Python tester.
libregrtest
.
main
()
Back
|
FazBrowse Home
|
New Git URL