FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
python/PC/testpy.py at master · java66liu/python · GitHub
java66liu
/
python
Public
forked from
glix/python
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
python
/
PC
/
testpy.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
32 lines (26 loc) · 834 Bytes
Breadcrumbs
python
/
PC
/
testpy.py
Copy path
File metadata and controls
32 lines (26 loc) · 834 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
31
32
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
)
import
os
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
regrtest
# Standard Python tester.
regrtest
.
main
()
Back
|
FazBrowse Home
|
New Git URL