From cb7278e3352e81cf0df4ae26ab66fa951381d728 Mon Sep 17 00:00:00 2001 From: "F. Eugene Aumson" Date: Tue, 17 Dec 2019 12:38:25 -0500 Subject: [PATCH] Increase platform agnosticism --- python-packages/contract_wrappers/setup.py | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/python-packages/contract_wrappers/setup.py b/python-packages/contract_wrappers/setup.py index 6b8902e9ed..8256709532 100755 --- a/python-packages/contract_wrappers/setup.py +++ b/python-packages/contract_wrappers/setup.py @@ -105,7 +105,10 @@ def run(self): rmtree(".mypy_cache", ignore_errors=True) rmtree(".tox", ignore_errors=True) rmtree(".pytest_cache", ignore_errors=True) - rmtree("src/0x_contract_wrappers.egg-info", ignore_errors=True) + rmtree( + path.join("src", "0x_contract_wrappers.egg-info"), + ignore_errors=True, + ) # generated files: print("Removing src/zero_ex/contract_wrappers/*/__init__.py...") for contract in glob( @@ -114,7 +117,15 @@ def run(self): ) ): try: - remove(f"src/zero_ex/contract_wrappers/{contract}/__init__.py") + remove( + path.join( + "src", + "zero_ex", + "contract_wrappers", + f"{contract}", + "__init__.py", + ) + ) except FileNotFoundError: pass