These two lines of code sometimes make the executable path point somewhere unexpected:
|
real_env_exe = os.path.realpath(context.env_exe) |
|
f.write('executable = %s\n' % os.path.realpath(sys.executable)) |
Based on the following issue, realpath is necessary in some cases. However, there are situations where using "redirects, links or junctions" is intentional! For example, using subst to change drive letters or path for venv.
#89500
Would it be possible to add an option to disable the use of realpath during venv creation?
These two lines of code sometimes make the executable path point somewhere unexpected:
cpython/Lib/venv/__init__.py
Line 210 in 8b5ce31
cpython/Lib/venv/__init__.py
Line 240 in 8b5ce31
Based on the following issue,
realpathis necessary in some cases. However, there are situations where using "redirects, links or junctions" is intentional! For example, usingsubstto change drive letters or path for venv.#89500
Would it be possible to add an option to disable the use of
realpathduring venv creation?