Commit e31090d2 authored by Stefan Behnel's avatar Stefan Behnel

support .py extension in cython_freeze

parent c6661c76
......@@ -15,6 +15,8 @@ if len(sys.argv) < 2:
def format_modname(name):
if name.endswith('.pyx'):
name = name[:-4]
elif name.endswith('.py'):
name = name[:-3]
return name.replace('.','_')
modules = [format_modname(x) for x in sys.argv[1:]]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment