Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: -i option changes sys.path (removes leading empty string '')
Post: RE: -i option changes sys.path (removes leading em...

Inserting an empty string in sys.path is exactly what I did, and it works like a champ! Thanks!
markanth General Coding Help 6 2,072 Aug-26-2022, 09:27 PM
    Thread: -i option changes sys.path (removes leading empty string '')
Post: RE: -i option changes sys.path (removes leading em...

I checked and do not have $PYTHONSTARTUP set. It's true that the first element in the search path is the location of the included file, and whether it is -i (interactive) does not matter. I gue...
markanth General Coding Help 6 2,072 Aug-26-2022, 06:48 AM
    Thread: -i option changes sys.path (removes leading empty string '')
Post: -i option changes sys.path (removes leading empty ...

I have an issue that I found very strange. Why would invoking Python with '-i' option affect sys.path? I have two aliases that I use to launch Python: alias p='python3 ' alias pr='python3 -i ~/.pyt...
markanth General Coding Help 6 2,072 Aug-26-2022, 12:13 AM

User Panel Messages

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