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

@ -16,6 +16,9 @@ class API(_pydfhack._API):
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):
""" """
Enforce Attach/Suspend behavior. Enforce Attach/Suspend behavior.