From eaf1c99ffec801619fc459de7806a99102a055c7 Mon Sep 17 00:00:00 2001 From: Josselin Date: Mon, 27 May 2019 10:05:47 +0100 Subject: [PATCH] Slither-format: - Fix setup.py - Use relative path to allow cli usage --- setup.py | 2 +- utils/slither_format/slither_format.py | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/setup.py b/setup.py index c4c2e581a..66de10fdd 100644 --- a/setup.py +++ b/setup.py @@ -16,7 +16,7 @@ setup( 'slither = slither.__main__:main', 'slither-check-upgradeability = utils.upgradeability.__main__:main', 'slither-find-paths = utils.possible_paths.__main__:main', - 'slither-simil = utils.similarity.__main__:main' + 'slither-simil = utils.similarity.__main__:main', 'slither-format = utils.slither_format.__main__:main' ] } diff --git a/utils/slither_format/slither_format.py b/utils/slither_format/slither_format.py index 5a75d3a53..8838ba071 100644 --- a/utils/slither_format/slither_format.py +++ b/utils/slither_format/slither_format.py @@ -12,13 +12,13 @@ from slither.slithir.operations import InternalCall from slither.core.expressions.call_expression import CallExpression from slither.core.expressions.expression import Expression from slither.core.expressions.identifier import Identifier -from slither_format.format_unused_state import FormatUnusedState -from slither_format.format_solc_version import FormatSolcVersion -from slither_format.format_pragma import FormatPragma -from slither_format.format_naming_convention import FormatNamingConvention -from slither_format.format_external_function import FormatExternalFunction -from slither_format.format_constable_states import FormatConstableStates -from slither_format.format_constant_function import FormatConstantFunction +from .format_unused_state import FormatUnusedState +from .format_solc_version import FormatSolcVersion +from .format_pragma import FormatPragma +from .format_naming_convention import FormatNamingConvention +from .format_external_function import FormatExternalFunction +from .format_constable_states import FormatConstableStates +from .format_constant_function import FormatConstantFunction logging.basicConfig(level=logging.INFO) logger = logging.getLogger('Slither.Format')