From 6570a06dc71904ce1ca7f2f7e0bd059af391d6a3 Mon Sep 17 00:00:00 2001 From: Dmitri Bogomolov <4glitch@gmail.com> Date: Fri, 24 Apr 2020 16:30:35 +0300 Subject: [PATCH] Use unicode in os.path.abspath (https://bugs.python.org/issue17320) --- src/bitmessagemain.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bitmessagemain.py b/src/bitmessagemain.py index 4a27f967..9280c947 100755 --- a/src/bitmessagemain.py +++ b/src/bitmessagemain.py @@ -12,7 +12,7 @@ The PyBitmessage startup script import os import sys -app_dir = os.path.dirname(os.path.abspath(__file__)) +app_dir = os.path.dirname(os.path.abspath(unicode(__file__))) os.chdir(app_dir) sys.path.insert(0, app_dir)