Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 00494bf

Browse files
committed
Inclide the imports and chdir in the try/except.
1 parent 1d0fe31 commit 00494bf

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

Tools/faqwiz/faqw.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
#! /usr/local/bin/python
22
import posix
33
t1 = posix.times()
4-
FAQDIR = "/usr/people/guido/python/FAQ"
5-
import os, sys, time, operator
6-
os.chdir(FAQDIR)
7-
sys.path.insert(0, FAQDIR)
84
try:
5+
FAQDIR = "/usr/people/guido/python/FAQ"
6+
import os, sys, time, operator
7+
os.chdir(FAQDIR)
8+
sys.path.insert(0, FAQDIR)
99
import faqwiz
1010
except SystemExit, n:
1111
sys.exit(n)

0 commit comments

Comments
 (0)