Minor bugfix

This commit is contained in:
Josh Yelon 2006-04-28 22:33:08 +00:00
parent fe6105ea26
commit 2022f48471
1 changed files with 1 additions and 1 deletions

View File

@ -70,7 +70,7 @@ OPTIONS = ParseOptions(sys.argv[1:])
PANDA=None
for dir in sys.path:
if (dir != "") and os.path.exists(os.path.join(dir,"direct")) and os.path.exists(os.path.join(dir,"pandac")) and os.path.exists(os.path.join(dir,"python")):
if (dir != "") and os.path.exists(os.path.join(dir,"direct")) and os.path.exists(os.path.join(dir,"pandac")):
PANDA=os.path.abspath(dir)
if (PANDA is None):
sys.exit("Cannot locate the panda root directory in the python path (cannot locate directory containing direct and pandac).")