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.
This commit is contained in:
Kodi Arfer 2017-05-03 16:47:52 -07:00 committed by Ryan Gonzalez
parent 4fce884d1b
commit a537d33471

View File

@ -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']