![]() |
creating parent path - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: General (https://python-forum.io/forum-1.html) +--- Forum: News and Discussions (https://python-forum.io/forum-31.html) +--- Thread: creating parent path (/thread-18402.html) |
creating parent path - Skaperen - May-16-2019 IMHO, it would be nice to have some global setting that enables the creation of the path of parent directories in all functions and/or methods that try to create a filesystem object. i would end up setting it often, with an environment variable override. RE: creating parent path - heiner55 - May-19-2019 #!/usr/bin/python3 import os print(__file__) print(os.path.realpath(__file__)) print(os.path.abspath(__file__)) RE: creating parent path - Skaperen - May-20-2019 what's that code for? RE: creating parent path - heiner55 - May-20-2019 Wrong Thread. |