I want to get the parent directory of a file. This code doesn't work:
projectRoot = os.path.dirname(os.pardir(os.path.abspath(__file__)))
What's wrong?
(I am developing a django application, and use this variable in the settings file of my application)
Thanks.
Romain