Josh Rosenberg added the comment:

That's because os.system is executing the command in a shell (which expands ~). 
Without shell support, ~ doesn't mean anything unless used with the APIs that 
specifically support it (e.g. os.path.expanduser).

You wanted os.path.exists(os.path.expanduser('~/.zshrc'))

This is not a bug.

----------
nosy: +josh.r

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue29831>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to