Python Forum
Thread Rating:
  • 1 Vote(s) - 2 Average
  • 1
  • 2
  • 3
  • 4
  • 5
creating parent path
#1
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.
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply
#2
#!/usr/bin/python3
import os

print(__file__)
print(os.path.realpath(__file__))
print(os.path.abspath(__file__))
Reply
#3
what's that code for?
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply
#4
Wrong Thread.
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020