mirror of
https://github.com/volatilityfoundation/volatility3.git
synced 2026-10-01 05:54:58 +02:00
Allow relative file paths in the pdb scanner prefix variable, for the documentation.
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user