23 Sep
2014
23 Sep
'14
7:52 a.m.
On Tue, Sep 23, 2014 at 9:19 AM, Tarek Ziadé <tarek@ziade.org> wrote:
Hello
I realize I am using a lot this pattern:
os.path.join(os.path.expanduser('~'), 'something', 'here') '/Users/tarek/something/here'
It's quite complicated, and not really intuitive.
I don't find that complicated, just a bit verbose perhaps, but it's definitively clear what it's doing and it is also explicit. os.path.joinuser('something', here') would probably be a bit less verbose but IMO it's not a good enough reason to introduce a new API. -- Giampaolo - http://grodola.blogspot.com