better __main__ setup in pypy

This commit is contained in:
Unbit
2013-05-19 07:52:31 +02:00
parent d25979502a
commit 8da59bf0ac
+2 -2
View File
@@ -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