From: Guido van Rossum Date: Fri, 30 May 1997 11:50:36 +0000 (+0000) Subject: Inclide the imports and chdir in the try/except. X-Git-Tag: v1.5a3~412 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=00494bfa15b4eb04ebc665b193d6f6d74e851805;p=python Inclide the imports and chdir in the try/except. --- diff --git a/Tools/faqwiz/faqw.py b/Tools/faqwiz/faqw.py index 6677bae715..0597c54865 100755 --- a/Tools/faqwiz/faqw.py +++ b/Tools/faqwiz/faqw.py @@ -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)