mirror of
https://expo.survex.com/repositories/expoweb/.git/
synced 2025-01-18 00:42:38 +00:00
Set up proper OS path for cavestats binary
This commit is contained in:
parent
d0c3799cfb
commit
eb7cacba21
6
noinfo/create_dplong_table.py
Normal file → Executable file
6
noinfo/create_dplong_table.py
Normal file → Executable file
@ -1,7 +1,7 @@
|
||||
#!/usr/bin/python
|
||||
import sys,csv,os,cStringIO
|
||||
|
||||
CS_BINARY = "cavestats"
|
||||
CS_BINARY = os.path.join(os.path.dirname(os.path.realpath(__file__)),"cavestats")
|
||||
N = 30 # Number to include in "N longest" and "N deepest" lists
|
||||
|
||||
# Utility functions
|
||||
@ -87,8 +87,10 @@ def parse_csvfile():
|
||||
|
||||
# Main routine:
|
||||
|
||||
|
||||
# this doesn't seem to work, and is deprectaed anyway
|
||||
#if (not os.access('CS_BINARY', os.X_OK)):
|
||||
# print "CS_BINARY not executable - skipping %s" % __file__
|
||||
# print "%s not executable - skipping %s" % (CS_BINARY,__file__)
|
||||
# exit(1)
|
||||
|
||||
caveslist = parse_csvfile()
|
||||
|
Loading…
Reference in New Issue
Block a user