script_name (bool, optional (default=False)) – If True, return also script name.
filepath (str, optional (default=None)) – Path to main script. If None: get from sys.argv for standard
interpreter, get from workdir for Ipython. If sys.argv empty, get from
working directory.
Returns
project_dir (str) – Full path to start script directory.
script_name (str, optional if script_name is True) – Main script name. ‘ipython’ for Ipython.