Inclide the imports and chdir in the try/except.

This commit is contained in:
Guido van Rossum 1997-05-30 11:50:36 +00:00
parent 1d0fe31d7e
commit 00494bfa15
1 changed files with 4 additions and 4 deletions

View File

@ -1,11 +1,11 @@
#! /usr/local/bin/python
import posix
t1 = posix.times()
FAQDIR = "/usr/people/guido/python/FAQ"
import os, sys, time, operator
os.chdir(FAQDIR)
sys.path.insert(0, FAQDIR)
try:
FAQDIR = "/usr/people/guido/python/FAQ"
import os, sys, time, operator
os.chdir(FAQDIR)
sys.path.insert(0, FAQDIR)
import faqwiz
except SystemExit, n:
sys.exit(n)