mirror of
https://github.com/clearlinux/uwsgi.git
synced 2026-09-05 21:21:53 +00:00
better __main__ setup in pypy
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
import sys
|
||||
sys.path.insert(0, '.')
|
||||
|
||||
# avoid problems (need to find a better solution)
|
||||
sys.modules['__main__'] = None
|
||||
mainmodule = type(sys)('__main__')
|
||||
sys.modules['__main__'] = mainmodule
|
||||
|
||||
import cffi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user