1
0
Fork 0

Made terrafit.py installable as a script, properly referring to the bindir of the main configuration.

This commit is contained in:
Ralf Gerlich 2007-11-08 22:29:04 +01:00
parent 27dd0a41d8
commit 1ed948c409
2 changed files with 7 additions and 2 deletions

View file

@ -1 +1,6 @@
EXTRA_DIST = terrafit.README terrafit.py
bin_SCRIPTS = terrafit.py
EXTRA_DIST = terrafit.README terrafit.py.in
terrafit.py: $(srcdir)/terrafit.py.in
echo ${bindir}
sed -e "s%__bindir__%${bindir}%g" $(srcdir)/terrafit.py.in > terrafit.py

View file

@ -38,7 +38,7 @@ def pre_terra(pgmName, data, span_x, span_y, max_z, min_z):
##
def run_terra(thresh, minnodes, count, factor, objName, pgmName):
print
command = "../Terra/terra -e %f -n %d -p %d -h %f -o %s obj %s"%(thresh, minnodes, count, factor, objName, pgmName)
command = "__bindir__/terra -e %f -n %d -p %d -h %f -o %s obj %s"%(thresh, minnodes, count, factor, objName, pgmName)
print command
npts = -1
error = -99999.9