3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-06-06 06:03:23 +00:00

python example

Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
Leonardo de Moura 2012-10-28 12:19:34 -07:00
parent 7f0fcefbe2
commit 483942c1a5
2 changed files with 8 additions and 0 deletions

View file

@ -200,6 +200,13 @@ def set_z3py_dir(p):
if VERBOSE:
print "Python bindinds directory was detected."
def add_z3py_example(p):
full = '%s/%s' % (EXAMPLE_DIR, p)
for py in filter(lambda f: f.endswith('.py'), os.listdir(full)):
shutil.copyfile('%s/%s' % (full, py), '%s/%s' % (BUILD_DIR, py))
if is_verbose():
print "Copied Z3Py example '%s' to '%s'" % (py, BUILD_DIR)
_UNIQ_ID = 0
def mk_fresh_name(prefix):