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

Unified Diff: client/trace_inputs.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 | « client/tools/zip_run_isolated.py ('k') | client/utils/oauth.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/trace_inputs.py
diff --git a/client/trace_inputs.py b/client/trace_inputs.py
index 4dc5a2d53b866935a443ba57fe17f6ae99c7e52f..a444ccc6e4bb084032735b4dc50db18c6b830bec 100755
--- a/client/trace_inputs.py
+++ b/client/trace_inputs.py
@@ -54,7 +54,8 @@ if sys.platform == 'win32':
__version__ = '0.2'
-BASE_DIR = os.path.dirname(os.path.abspath(__file__))
+BASE_DIR = os.path.dirname(os.path.abspath(
+ __file__.decode(sys.getfilesystemencoding())))
ROOT_DIR = os.path.dirname(os.path.dirname(BASE_DIR))
« no previous file with comments | « client/tools/zip_run_isolated.py ('k') | client/utils/oauth.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698