mirror of
https://github.com/volatilityfoundation/volatility3.git
synced 2026-08-25 15:42:24 +02:00
Alter the config.path_join function to remove empty sections.
This commit is contained in:
@@ -11,6 +11,8 @@ CONFIG_SEPARATOR = "."
|
||||
|
||||
def path_join(*args):
|
||||
"""Joins the config paths together"""
|
||||
# If a path element (particularly the first) is empty, then remove it from the list
|
||||
args = [arg for arg in args if arg]
|
||||
return CONFIG_SEPARATOR.join(args)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user