To find the path of the current directory file you can use the os module ( os. Path in particular) and os.path. Realpath(__file__) To get the path of another file replace file with the path of the file you wish to execute to determine its location.
To find the path of the current directory file you can use the os module (os. Path in particular) and os.path. Realpath(__file__).
To get the path of another file replace __file__ with the path of the file you wish to execute to determine its location. Realpath returns the canonical path of specified file name. For a full list of the os.
Path functions visit the manual. Edit: As mentioned by the comment to get the current working directory you should use os.getcwd().
1 -1 current directory is obtained by os.getcwd(). __file__ gives you the currently-executing file. – John Machin Feb 28 at 6:11 @John Machin: Updated answer to reflect this.
– Russell Dias Feb 28 at 8:22.
Current Working Directory: os.getcwd() And the __file__ attribute can help you find out where the file you are executing is located. This SO post explains everything: How do I get the path of the current executed file in python?
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.