diff --git a/setup.py b/setup.py index b9cb28144..2e1a2c51a 100644 --- a/setup.py +++ b/setup.py @@ -117,8 +117,9 @@ else: # ----------------------------------------------------------------------------- # declare flags def get_modulename_from_file(filename): + filename = filename.replace(sep, '/') pyx = '.'.join(filename.split('.')[:-1]) - pyxl = pyx.split(sep) + pyxl = pyx.split('/') while pyxl[0] != 'kivy': pyxl.pop(0) if pyxl[1] == 'kivy':