Cómo obtener la ubicación usando Python

import os
os.system('echo $PWD')
Mohammed Albaqer