Fixed a genpycode bug

This commit is contained in:
Josh Yelon 2005-11-18 19:13:57 +00:00
parent a5bb442960
commit dd351b4e27
1 changed files with 3 additions and 2 deletions

View File

@ -24,12 +24,13 @@ import sys,os
DIRECT=None
PANDAC=None
for dir in sys.path:
if (DIRECT is None):
if os.path.exists(os.path.join(dir,"direct")):
if (dir != "") and os.path.exists(os.path.join(dir,"direct")):
DIRECT=os.path.join(dir,"direct")
if (PANDAC is None):
if (os.path.exists(os.path.join(dir,"pandac"))):
if (dir != "") and (os.path.exists(os.path.join(dir,"pandac"))):
PANDAC=os.path.join(dir,"pandac")
if (DIRECT is None):