Salome HOME
projects
/
tools
/
libbatch.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Merge from BR_LIBBATCH_2_0
[tools/libbatch.git]
/
src
/
Core
/
Test
/
test_script.py
1
#!/usr/bin/env python
2
3
import sys
4
import os
5
6
if len(sys.argv) != 4:
7
print "Usage: test-script.py seta.py setb.py result.txt"
8
9
execfile(sys.argv[1])
10
execfile(sys.argv[2])
11
12
c = a * b
13
14
f = open(sys.argv[3], "w")
15
f.write('MYENVVAR = "%s"\n' % os.getenv("MYENVVAR"))
16
f.write("c = %d\n" % c)