Skip to content

Commit 37814ec

Browse files
fix(lib): use new find-python-script.py
1 parent 29d5b25 commit 37814ec

File tree

1 file changed

+4
-11
lines changed

1 file changed

+4
-11
lines changed

lib/find-python-script.py

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,4 @@
1-
import sys, codecs;
2-
3-
if (sys.stdout.encoding != "utf-8" and sys.platform == "win32"):
4-
if sys.version_info > (3, 7):
5-
sys.stdout.reconfigure(encoding='utf-8')
6-
print(sys.executable)
7-
else:
8-
sys.stdout = codecs.getwriter("utf8")(sys.stdout)
9-
print(sys.executable.decode("cp1251"))
10-
else:
11-
print(sys.executable)
1+
import sys
2+
if sys.stdout.encoding != "utf-8" and sys.platform == "win32":
3+
sys.stdout.reconfigure(encoding='utf-8')
4+
print(sys.executable)

0 commit comments

Comments
 (0)