environment variable

Steve D'Aprano steve+python at pearwood.info
Sat Jun 24 21:03:18 EDT 2017


On Sun, 25 Jun 2017 08:39 am, Gene Heskett wrote:

> On Saturday 24 June 2017 16:49:25 Smith wrote:
> 
>> Hello to all,
>> I wanted to ask you how I could delete a line of an environment
>> variable (PATH)
[...]

> export PATH=
> 
> but be prepared to type the full path to anything you want to run.  It a
> PITA, or a cast iron bitch or whatever definition fits.

Are you serious? The OP asked how to delete *one line* from an environment
variable, and you respond by deleting them all?

"The ashtray in my car is full, how do I clean it?"

"Throw the car away and walk everywhere."




-- 
Steve
“Cheer up,” they said, “things could be worse.” So I cheered up, and sure
enough, things got worse.




More information about the Python-list mailing list