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

Unified Diff: client/tools/swarming_count_tasks.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/run_swarming_tests_on_swarming.py ('k') | client/tools/swarming_load_test_bot.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/tools/swarming_count_tasks.py
diff --git a/client/tools/swarming_count_tasks.py b/client/tools/swarming_count_tasks.py
index ed85e26012360286ece7f876ee35cc24fdfc879c..2d2e3dc8e2909e43d4e8e0314758d6fe187889c6 100755
--- a/client/tools/swarming_count_tasks.py
+++ b/client/tools/swarming_count_tasks.py
@@ -22,7 +22,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()))))
sys.path.insert(0, CLIENT_DIR)
« no previous file with comments | « client/tools/run_swarming_tests_on_swarming.py ('k') | client/tools/swarming_load_test_bot.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698