1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-04-27 19:05:16 +00:00

Fix file path bug in cconvert

This commit is contained in:
xiez 2012-08-20 17:09:01 +08:00
parent 1107f7035b
commit 1bfd43b299

View File

@ -25,7 +25,7 @@ class CConvert:
self.spliter = '-'
"Load data table"
try:
fp=open('convert-utf-8.txt')
fp=open(os.path.join(os.path.dirname(__file__), 'convert-utf-8.txt'))
except IOError:
print "Can't load data from convert-utf-8.txt\nPlease make sure this file exists."
sys.exit(1)