Python Forum
modifying PYTHONPATH during a script
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
modifying PYTHONPATH during a script
#3
so, if i want to load a specific file i could save the contents of sys.path, replace it all with the one directory that file is in, import the file, then restore the contents of sys.path?
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply


Messages In This Thread
modifying PYTHONPATH during a script - by Skaperen - Jul-02-2022, 04:39 AM
RE: modifying PYTHONPATH during a script - by Skaperen - Jul-04-2022, 04:38 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020