This is a friendly reminder for myself as I keep forgetting how simple stuff like that work...

So here we go !

To get the Current Working Directory (cwd), i.e, the directory from where you are calling a script (and not the directory where the script is...), you can just do...

import os
cwd_full_path = os.getcwd()
cwd_dir_name = os.path.basename(cwd_full_path)

And you're good to go :)