From eb7cacba210012f2b0f7b8e48b827c5b77e2c9cc Mon Sep 17 00:00:00 2001 From: Wookey Date: Tue, 11 Jun 2013 03:58:57 +0100 Subject: [PATCH] Set up proper OS path for cavestats binary --- noinfo/create_dplong_table.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) mode change 100644 => 100755 noinfo/create_dplong_table.py diff --git a/noinfo/create_dplong_table.py b/noinfo/create_dplong_table.py old mode 100644 new mode 100755 index c6b8e7b68..819bc40f0 --- a/noinfo/create_dplong_table.py +++ b/noinfo/create_dplong_table.py @@ -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()