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

Unified Diff: client/utils/oauth.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/trace_inputs.py ('k') | client/utils/zip_package.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/utils/oauth.py
diff --git a/client/utils/oauth.py b/client/utils/oauth.py
index 480f0763b7cfc0528a22ec2759d3f9b2ee35278e..8e10da162021330b8449d751fd5353b77ba56c83 100644
--- a/client/utils/oauth.py
+++ b/client/utils/oauth.py
@@ -23,7 +23,8 @@ import urlparse
import webbrowser
# All libraries here expect to find themselves in sys.path.
-ROOT_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
+ROOT_DIR = os.path.dirname(os.path.dirname(os.path.abspath(
+ __file__.decode(sys.getfilesystemencoding()))))
sys.path.insert(0, os.path.join(ROOT_DIR, 'third_party'))
sys.path.insert(0, os.path.join(ROOT_DIR, 'third_party', 'pyasn1'))
sys.path.insert(0, os.path.join(ROOT_DIR, 'third_party', 'rsa'))
« no previous file with comments | « client/trace_inputs.py ('k') | client/utils/zip_package.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698