Made terrafit.py installable as a script, properly referring to the bindir of the main configuration.
This commit is contained in:
parent
27dd0a41d8
commit
1ed948c409
2 changed files with 7 additions and 2 deletions
|
@ -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
|
2
src/Prep/TerraFit/terrafit.py → src/Prep/TerraFit/terrafit.py.in
Executable file → Normal file
2
src/Prep/TerraFit/terrafit.py → src/Prep/TerraFit/terrafit.py.in
Executable file → Normal 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):
|
def run_terra(thresh, minnodes, count, factor, objName, pgmName):
|
||||||
print
|
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
|
print command
|
||||||
npts = -1
|
npts = -1
|
||||||
error = -99999.9
|
error = -99999.9
|
Loading…
Add table
Reference in a new issue