I tried the python os.getcwd() function but it outputs path names with '////' instead of '/'. (Anyway the py external has problems i don't understand right now, it works when i run it with double-clicking on the patch but give me 'AttributeErrors' when I open the patch or create the py object from pd on win32).
Is there another solution for getting the path of a patch or at least the working directory's path?