コード例 #1
0
ファイル: test_regex.py プロジェクト: EvelynHf/basil
 def _getmyre0 (self):
     mython_module_path = os.path.join(os.path.split(__file__)[0],
                                       "test_regex01.my")
     
     module_co, _ = toplevel_compile(mython_module_path)
     if __debug__:
         dis.dis(module_co)
     exec module_co
     return myre0
コード例 #2
0
ファイル: test_cheetah.py プロジェクト: EvelynHf/basil
 def _get_module (self):
     mython_module_path = os.path.join(os.path.split(__file__)[0],
                                       "test_cheetah01.my")
     module_co, _ = toplevel_compile(mython_module_path)
     if __debug__:
         dis.dis(module_co)
     module = new.module("test_cheetah01")
     eval(module_co, module.__dict__)
     return module