mirror of
https://github.com/python/cpython.git
synced 2025-08-31 22:18:28 +00:00
Add a separate SRC directory and insert it in front of the path.
This commit is contained in:
parent
1dccdc221c
commit
193a11e389
1 changed files with 2 additions and 1 deletions
|
@ -3,9 +3,10 @@ import posix
|
||||||
t1 = posix.times()
|
t1 = posix.times()
|
||||||
try:
|
try:
|
||||||
FAQDIR = "/usr/people/guido/python/FAQ"
|
FAQDIR = "/usr/people/guido/python/FAQ"
|
||||||
|
SRCDIR = "/usr/people/guido/python/Tools/faqwiz"
|
||||||
import os, sys, time, operator
|
import os, sys, time, operator
|
||||||
os.chdir(FAQDIR)
|
os.chdir(FAQDIR)
|
||||||
sys.path.insert(0, FAQDIR)
|
sys.path.insert(0, SRCDIR)
|
||||||
import faqwiz
|
import faqwiz
|
||||||
except SystemExit, n:
|
except SystemExit, n:
|
||||||
sys.exit(n)
|
sys.exit(n)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue