Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(930)

Unified Diff: client/example/common.py

Issue 2093593002: luci-py: Making __file__ usage unicode safe. (Closed) Base URL: https://github.com/luci/luci-py.git@master
Patch Set: Small fixes. Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | client/libs/logdog/tests/bootstrap_test.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/example/common.py
diff --git a/client/example/common.py b/client/example/common.py
index 9313429f1571bc587431b31de4797ee2e3d8cc78..07c0bfc0276ef69bd4021673b87f09ed42aaee14 100644
--- a/client/example/common.py
+++ b/client/example/common.py
@@ -11,7 +11,8 @@ import subprocess
import sys
-ROOT_DIR = os.path.dirname(os.path.abspath(__file__))
+ROOT_DIR = os.path.dirname(os.path.abspath(
+ __file__.decode(sys.getfilesystemencoding())))
sys.path.append(os.path.join(ROOT_DIR, '..', 'third_party'))
import colorama
« no previous file with comments | « no previous file | client/libs/logdog/tests/bootstrap_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698