From 6c630b164ba24c707038a76483600d540b72686c Mon Sep 17 00:00:00 2001 From: Sasha Crandall Fleischman Date: Sun, 21 Jun 2015 17:46:40 -0400 Subject: [PATCH] Fixed index.py (again) --- index.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/index.py b/index.py index 55e000c..b12a0b0 100755 --- a/index.py +++ b/index.py @@ -2,16 +2,17 @@ import cgitb import os -from core import * +import sys +from conlang import workers cgitb.enable() -sys.stdout = Reencoder(sys.stdout) +sys.stdout = workers.Reencoder(sys.stdout) print('Content-Type: text/html') print('') -files = sorted([' '] + os.listdir(FILE_PATH + '/files/')) +files = sorted([' '] + os.listdir(workers.FILE_PATH + '/files/')) fs = ['.' * f.count('.') + ('.' + f).rsplit('.', 1)[1] for f in files] with open('chars.txt', encoding='utf-8') as cf: