Created
June 20, 2013 07:11
-
-
Save rahul8590/5820801 to your computer and use it in GitHub Desktop.
This is the python program for the scale.cpp program.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Run will execute the run function on scale.cpp | |
from ctypes import cdll | |
lib = cdll.LoadLibrary('./libscale.so') | |
class Foo(object): | |
def __init__(self): | |
self.obj = lib.Foo_new() | |
def run(self): | |
lib.Foo_run(self.obj) | |
f = Foo() | |
f.run() | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment