mirror of
https://github.com/volatilityfoundation/volatility3.git
synced 2026-09-09 11:17:38 +02:00
Documentation: Fix building from different directories
This commit is contained in:
+2
-2
@@ -85,10 +85,10 @@ def setup(app):
|
||||
contents.write(line.replace(b'volatility3.framework.plugins', b'volatility3.plugins'))
|
||||
|
||||
# Clear up the framework.plugins page
|
||||
with open(os.path.join('source', 'volatility3.framework.plugins.rst'), "rb") as contents:
|
||||
with open(os.path.join(os.path.dirname(__file__), 'volatility3.framework.plugins.rst'), "rb") as contents:
|
||||
real_lines = contents.readlines()
|
||||
|
||||
with open(os.path.join('source', 'volatility3.framework.plugins.rst'), "wb") as contents:
|
||||
with open(os.path.join(os.path.dirname(__file__), 'volatility3.framework.plugins.rst'), "wb") as contents:
|
||||
for line in real_lines:
|
||||
if b'volatility3.framework.plugins.' not in line:
|
||||
contents.write(line)
|
||||
|
||||
Reference in New Issue
Block a user