diff options
author | Guido van Rossum <guido@python.org> | 1997-05-30 11:50:36 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1997-05-30 11:50:36 (GMT) |
commit | 00494bfa15b4eb04ebc665b193d6f6d74e851805 (patch) | |
tree | cfb56387a94c82a3ecdbd59b49ae9b99de4ef257 /Tools | |
parent | 1d0fe31d7e4d3d7a756678e991c3284202877cda (diff) | |
download | cpython-00494bfa15b4eb04ebc665b193d6f6d74e851805.zip cpython-00494bfa15b4eb04ebc665b193d6f6d74e851805.tar.gz cpython-00494bfa15b4eb04ebc665b193d6f6d74e851805.tar.bz2 |
Inclide the imports and chdir in the try/except.
Diffstat (limited to 'Tools')
-rwxr-xr-x | Tools/faqwiz/faqw.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Tools/faqwiz/faqw.py b/Tools/faqwiz/faqw.py index 6677bae..0597c54 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) |