runtime/__init__.py
changeset 49 45dc6a944ab6
child 203 cb9901076a21
equal deleted inserted replaced
48:6b30cfee163e 49:45dc6a944ab6
       
     1 # module which import C files as strings
       
     2 
       
     3 import os
       
     4 
       
     5 def code(name):
       
     6     filename = os.path.join(os.path.split(__file__)[0],name + ".c")
       
     7     if os.path.exists(filename):
       
     8         return open(filename).read()
       
     9     else:
       
    10         return "#error %s target not implemented !!!\n"%name