Skip to content

Commit

Permalink
Support locale of China and so on.
Browse files Browse the repository at this point in the history
Goagent在中文界面下的ubuntu运行会报错,所以稍稍改了一下。
  • Loading branch information
hyln9 committed Apr 8, 2014
1 parent be94bb1 commit af54b13
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions local/proxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,11 @@
import os
import glob

default_encoding = 'utf-8'
if sys.getdefaultencoding() != default_encoding:
reload(sys)
sys.setdefaultencoding(default_encoding)

sys.dont_write_bytecode = True
sys.path += glob.glob('%s/*.egg' % os.path.dirname(os.path.abspath(__file__)))

Expand Down

0 comments on commit af54b13

Please sign in to comment.