remove item from python path
I have added a path to the system pythonpath on linux and now i've broken it. How may I remove it ?
[EDIT] Finally i solved it remov开发者_C百科ing the script that added that path + installing something to rebuild the path.
not directly programming related but....
'print' your pythonpath to a file, edit the file and export that as your new pythonpath
[edit] I stand corrected, see Banang answer below [/edit]
I don't think there is a concept of Windows-like environment variables in Linux; they are defined in various scripts (e.g. .bashrc
). You can edit those in any text editor.
What exactly did you to do "break" your PYTHONPATH?
精彩评论