I want to get the current file\'s directory path. I tried:
>>> os.path.abspath(__file__) \'C:\\\\python27\\\\test.py\'
But how can
If you just want to see the current working directory
import os print(os.getcwd)
If you want to change the current working directory
os.chdir(path)
path is a string containing the required path to be moved. e.g.
path = "C:\\Users\\xyz\\Desktop\\move here"