From ab40c091a1a42729729d49fc9c9c799870569552 Mon Sep 17 00:00:00 2001 From: Nikhil Parasaram Date: Fri, 14 Dec 2018 00:46:27 +0530 Subject: [PATCH] Correct the Manifest.ini path and moveback the signatures.db to mythril root --- MANIFEST.in | 2 +- mythril/mythril.py | 2 +- setup.py | 2 +- mythril/signatures.db => signatures.db | Bin 4 files changed, 3 insertions(+), 3 deletions(-) rename mythril/signatures.db => signatures.db (100%) diff --git a/MANIFEST.in b/MANIFEST.in index 2ae7e870..de31ad6b 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,2 +1,2 @@ -include mythril/disassembler/signatures.db +include signatures.db include mythril/analysis/templates/* diff --git a/mythril/mythril.py b/mythril/mythril.py index 07a45ecf..86bb4da0 100644 --- a/mythril/mythril.py +++ b/mythril/mythril.py @@ -126,7 +126,7 @@ class Mythril(object): if not os.path.exists(db_path): # if the default mythril dir doesn't contain a signature DB # initialize it with the default one from the project root - parent_dir = Path(__file__).parent + parent_dir = Path(__file__).parent.parent copyfile(str(parent_dir / "signatures.db"), db_path) return mythril_dir diff --git a/setup.py b/setup.py index 78d2b43d..f1427861 100755 --- a/setup.py +++ b/setup.py @@ -102,7 +102,7 @@ setup( tests_require=["pytest>=3.6.0", "pytest_mock", "pytest-cov"], python_requires=">=3.5", extras_require={}, - package_data={"mythril.analysis.templates": ["*"], "mythril": ["signatures.db"]}, + package_data={"mythril.analysis.templates": ["*"], "": ["signatures.db"]}, include_package_data=True, entry_points={"console_scripts": ["myth=mythril.interfaces.cli:main"]}, cmdclass={"verify": VerifyVersionCommand}, diff --git a/mythril/signatures.db b/signatures.db similarity index 100% rename from mythril/signatures.db rename to signatures.db