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

Unified Diff: client/swarming.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/run_isolated.py ('k') | client/tests/file_path_test.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/swarming.py
diff --git a/client/swarming.py b/client/swarming.py
index e34e091e87817df3a16ce885982cbc33336ff369..c70eff71b8bb3aac2a9d0b09288ecac2809bded7 100755
--- a/client/swarming.py
+++ b/client/swarming.py
@@ -40,7 +40,8 @@ import isolateserver
import run_isolated
-ROOT_DIR = os.path.dirname(os.path.abspath(__file__))
+ROOT_DIR = os.path.dirname(os.path.abspath(
+ __file__.decode(sys.getfilesystemencoding())))
class Failure(Exception):
« no previous file with comments | « client/run_isolated.py ('k') | client/tests/file_path_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698