Fixed a bug in the python WML parser which I introduced a few days ago.

This commit is contained in:
Elias Pschernig 2007-05-22 17:36:13 +00:00
parent 29d9ad2402
commit 69e7828160

View file

@ -275,7 +275,7 @@ class Parser:
if not os.path.exists(dirpath): dirpath = None
else:
dirpath = None
if dirpath and self.user_dir:
if not dirpath and self.user_dir:
dirpath = self.user_dir + "/" + macro[1:]
# If the macro starts with ., look relative to the currently parsed
# file.