From 6aed22d5ae93b464063ab573695d167aab4fe604 Mon Sep 17 00:00:00 2001 From: Patas007 Date: Thu, 26 Oct 2017 17:59:58 +0200 Subject: [PATCH] Unicode support in get.py Localized versions of Linux systems use Unicode characters in the names of standard directories like "Downloads". --- tools/get.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/get.py b/tools/get.py index fe9c8ea98e9..e7adb370f9d 100755 --- a/tools/get.py +++ b/tools/get.py @@ -24,7 +24,7 @@ if 'Windows' in platform.system(): import requests -current_dir = os.path.dirname(os.path.realpath(__file__)) +current_dir = os.path.dirname(os.path.realpath(unicode(__file__))) dist_dir = current_dir + '/dist/' def sha256sum(filename, blocksize=65536):