Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aa289a5 commit 2e4e011Copy full SHA for 2e4e011
1 file changed
Lib/site.py
@@ -522,8 +522,13 @@ def main():
522
"""
523
global ENABLE_USER_SITE
524
525
- abs_paths()
+ orig_path = sys.path[:]
526
known_paths = removeduppaths()
527
+ if orig_path != sys.path:
528
+ # removeduppaths() might make sys.path absolute.
529
+ # fix __file__ and __cached__ of already imported modules too.
530
+ abs_paths()
531
+
532
known_paths = venv(known_paths)
533
if ENABLE_USER_SITE is None:
534
ENABLE_USER_SITE = check_enableusersite()
0 commit comments