python on Linux

Igor Korot ikorot01 at gmail.com
Fri Oct 10 06:21:44 CEST 2014


Hi, ALL,
When I am on Windows, I can write something like this:

sys.path.append('C:\Users\Igor\Documents\MyLib')

Now, when I'm on Linux, can I do this:

sys.path.append('~/MyLib')

?

I.e., will '~' sign be expanded correctly?

Thank you.



More information about the Python-list mailing list