Example #1
0
 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
Example #2
0
 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