Hack to bypass MEMXML_DATA_PATH xml path restriction

develop
RusAnon 2010-05-03 22:03:28 +11:00
parent e5d2805184
commit 2b04c0f662
1 changed files with 3 additions and 0 deletions

@ -15,6 +15,9 @@ class API(_pydfhack._API):
datafile = os.path.join(path, "Memory.xml") datafile = os.path.join(path, "Memory.xml")
if not os.path.isfile(datafile): if not os.path.isfile(datafile):
raise ImportError, "Memory.xml not found." raise ImportError, "Memory.xml not found."
# Rude hack to bypass xml location restrictions
datafile = "./" + "../"*20 + datafile
def prepare(self): def prepare(self):
""" """