Skip to content

Instantly share code, notes, and snippets.

@rahul8590
Created June 20, 2013 07:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rahul8590/5820801 to your computer and use it in GitHub Desktop.
Save rahul8590/5820801 to your computer and use it in GitHub Desktop.
This is the python program for the scale.cpp program.
#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