fix window build.

This commit is contained in:
Mathieu Virbel 2012-02-24 02:25:25 +01:00
parent da1e506abf
commit 46dfe8951e
1 changed files with 2 additions and 1 deletions

View File

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