Set up proper OS path for cavestats binary

This commit is contained in:
Wookey 2013-06-11 03:58:57 +01:00
parent d0c3799cfb
commit eb7cacba21

6
noinfo/create_dplong_table.py Normal file → Executable file
View 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()