I have a folder on my "Desktop" called "PBStuff" and inside a folder called "dirtest"... this code is saved and compiled inside this folder.
Code: Select all
debug GetCurrentDirectory()
/Users/paul/Desktop/PBStuff/dirtest/
When compiled as Console executable it returns the incorrect result regardless of what folder the pb file is compiled in:
/Users/paul/
Both WIndows and Linux return the correct result when compiled as standard EXE or console EXE.