'os' module Flashcards

1
Q

os.getcwd()

A

will return current working directory, not including the files’ own directory

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

os.path.abspath(__file__)

A

return the absolute path for the file, including the file name

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

os.path.dirname(__file__)

A

will return directory name including the current folder

How well did you know this?
1
Not at all
2
3
4
5
Perfectly