Source

cy-cxxfwk / test.py

Full commit
#!/usr/bin/env python2
print "=== py-app ==="
import sys
sys.path.append('__build__')

import os
_ld = os.environ['LD_LIBRARY_PATH']
os.environ['LD_LIBRARY_PATH'] = os.pathsep.join(['./__build__',_ld])

import cyfwk

class SubAlg(cyfwk.AlgBase):
    def __init__(self, i):
        cyfwk.AlgBase.__init__(self)
        self.i = i
    def run_impl(self):
        print('SubAlg.run ==> %i' % (self.i,))

alg = SubAlg(666)
alg.run()
print "=== bye."