diff --git a/.DS_Store b/.DS_Store deleted file mode 100644 index 05d4c53..0000000 Binary files a/.DS_Store and /dev/null differ diff --git a/floppies/giulia/noweb/cgi-bin/index.cgi b/floppies/giulia/noweb/cgi-bin/index.cgi index 09197c3..b313494 100755 --- a/floppies/giulia/noweb/cgi-bin/index.cgi +++ b/floppies/giulia/noweb/cgi-bin/index.cgi @@ -5,7 +5,10 @@ import cgitb; cgitb.enable() from jinja2 import Template # Directory => ITEMS list (all files with a timestamp name, grouped) -ff = os.listdir("clips") +try: + ff = os.listdir("/var/www/static/gait") +except OSError: + ff = [] tpat = re.compile(r"^(\d\d\d\d)-(\d\d)-(\d\d)-(\d\d)-(\d\d)-(\d\d)") items = {} for f in ff: @@ -34,6 +37,7 @@ print "" print Template(u"""