Allow relative file paths in the pdb scanner prefix variable, for the documentation.

This commit is contained in:
Mike Auty
2016-12-26 18:47:06 +00:00
parent d2c5cde545
commit ba7275f973
@@ -162,6 +162,8 @@ class KernelPDBScanner(interfaces.automagic.AutomagicInterface):
midfix = os.path.join(kernel['pdb_name'], kernel['GUID'] + "-" + str(kernel['age']))
idd_path = None
for prefix in self.prefixes:
if not os.path.isabs(prefix):
prefix = os.path.abspath(os.path.join(__file__, prefix))
for suffix in self.suffixes:
if os.path.exists(os.path.join(prefix, midfix + suffix)):
idd_path = "file://" + os.path.abspath(os.path.join(prefix, midfix + suffix))