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

Unified Diff: client/tools/fleet.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/diff_isolates.py ('k') | client/tools/isolateserver_load_test.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/tools/fleet.py
diff --git a/client/tools/fleet.py b/client/tools/fleet.py
index bce1288b3d82193d9d1d8b99f47bcf81c2f7d6c6..ff8546c6bf311f68d25815c34b98c050e5fe42a4 100755
--- a/client/tools/fleet.py
+++ b/client/tools/fleet.py
@@ -19,7 +19,8 @@ import sys
import urllib
-CLIENT_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
+CLIENT_DIR = os.path.dirname(os.path.dirname(os.path.abspath(
+ __file__.decode(sys.getfilesystemencoding()))))
_EPOCH = datetime.datetime.utcfromtimestamp(0)
« no previous file with comments | « client/tools/diff_isolates.py ('k') | client/tools/isolateserver_load_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698