From: Stefan Behnel Date: Tue, 6 Oct 2009 07:22:46 +0000 (+0200) Subject: support .py extension in cython_freeze X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=e31090d23805834f5b773f7ccf81f6afaab0d4b0;p=cython.git support .py extension in cython_freeze --- diff --git a/bin/cython_freeze.py b/bin/cython_freeze.py index 184c4a89..a8c9448f 100644 --- a/bin/cython_freeze.py +++ b/bin/cython_freeze.py @@ -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:]]