How to create a file one directory up?

Viewed 23011

How can I create a file in python one directory up, without using the full path?

I would like a way that worked both for windows and linux.

Thanks.

3 Answers
Related