From 1bfd43b2996830fbce704fc42a11f03a924562eb Mon Sep 17 00:00:00 2001 From: xiez Date: Mon, 20 Aug 2012 17:09:01 +0800 Subject: [PATCH] Fix file path bug in cconvert --- cconvert.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cconvert.py b/cconvert.py index 9c5061b6de..65733fad58 100644 --- a/cconvert.py +++ b/cconvert.py @@ -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)