On linux running command line...I imagine the same thing could happen on MacOS.
If I cd /location/of/substance/project
Then launch Substance Painter using "/full/path/to/Substance Painter" project_name.spp
If I try to get the full path to the open project using alg.fileIO.urlToLocalFile(alg.project.url())
I get "project_name.spp" rather than "/location/of/substance/project/project_name.spp".
Is there any way to get a full path rather than a relative one?