Skip to content

Commit

Permalink
Fixed index.py (again)
Browse files Browse the repository at this point in the history
  • Loading branch information
zyxw59 committed Jun 21, 2015
1 parent aa83cbe commit 6c630b1
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions index.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 6c630b1

Please sign in to comment.