mirror of
https://github.com/pineappleEA/pineapple-src.git
synced 2024-12-01 22:48:26 -05:00
12 lines
403 B
Diff
Executable File
12 lines
403 B
Diff
Executable File
--- a/Lib/ensurepip/__init__.py 2021-10-05 00:40:46.000000000 +0700
|
|
+++ b/Lib/ensurepip/__init__.py 2022-01-11 15:22:54.001498300 +0700
|
|
@@ -86,6 +86,8 @@
|
|
code = f"""
|
|
import runpy
|
|
import sys
|
|
+import os
|
|
+sys.executable = os.path.dirname(os.path.realpath(__file__))
|
|
sys.path = {additional_paths or []} + sys.path
|
|
sys.argv[1:] = {args}
|
|
runpy.run_module("pip", run_name="__main__", alter_sys=True)
|