file python

Solutions on MaxInterview for file python by the best coders in the world

we are a community of more than 2 million smartest coders
registration for
employee referral programs
are now open
get referred to google, amazon, flipkart and more
register now
  
pinned-register now
showing results for - " file python"
Lena
06 Jan 2020
1A = os.path.join(os.path.dirname(__file__), '..')
2# A is the parent directory of the directory where program resides.
3
4B = os.path.dirname(os.path.realpath(__file__))
5# B is the canonicalised (?) directory where the program resides.
6
7C = os.path.abspath(os.path.dirname(__file__))
8# C is the absolute path of the directory where the program resides.