Guarded the sys.path.insert.

This commit is contained in:
Jeremy Fincher 2003-08-27 07:46:19 +00:00
parent bb1bdd2725
commit adbd4fd23b
1 changed files with 2 additions and 1 deletions

View File

@ -38,7 +38,8 @@ Fixes stuff that Python should have but doesn't.
import sys
import string
sys.path.insert(0, 'others')
if 'others' not in sys.path:
sys.path.insert(0, 'others')
string.ascii = string.maketrans('', '')