Skip to content

Commit

Permalink
Merge pull request xuminzhong#1 from hyln9/patch-1
Browse files Browse the repository at this point in the history
Support locale of China and so on.
  • Loading branch information
phuslu committed Apr 8, 2014
2 parents be94bb1 + af54b13 commit 8a9a910
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 8a9a910

Please sign in to comment.