From a537d33471f7e9fd888f3d7ecc62e8fb3732779a Mon Sep 17 00:00:00 2001 From: Kodi Arfer Date: Wed, 3 May 2017 16:47:52 -0700 Subject: [PATCH] In setup.py, handle backslash-separated paths (#1284) The obvious way to do this is to apply os.path.split iteratively, and I tried that first, but it seemed like overkill for setup.py. --- setup.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 3011c9e..d6a1d64 100755 --- a/setup.py +++ b/setup.py @@ -57,7 +57,8 @@ class Install(install): for filename in sorted(filenames): if filename.endswith(".hy"): importlib.import_module( - dirpath.replace("/", ".") + "." + filename[:-len(".hy")]) + dirpath.replace("/", ".").replace("\\", ".") + + "." + filename[:-len(".hy")]) install.run(self) install_requires = ['rply>=0.7.0', 'astor>=0.5', 'clint>=0.4']