cckuailong / py2sec

:snake: py2sec is a Cross-Platform, Fast and Flexible tool to change the .py to .so(Linux and Mac) or .pyd(Win).

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

我把整个flask转换后为啥获取不到url里面的参数

thewholeworld opened this issue · comments

例子:

@blueprint.route('/string:id/', methods=['GET'])
def get(id):
return id
TypeError: get() takes no keyword arguments

找到问题了,编译工具cython有一个参数需要加上,代码在py2sec_build.py.template文件中,最后一行ext_modules修改为:
ext_modules = cythonize(extentions, nthreads=%s, build_dir="tmp_build", quiet=%s, compiler_directives=compiler_directives)

找到问题了,编译工具cython有一个参数需要加上,代码在py2sec_build.py.template文件中,最后一行ext_modules修改为:
ext_modules = cythonize(extentions, nthreads=%s, build_dir="tmp_build", quiet=%s, compiler_directives=compiler_directives)