GetCurrentDirectory incorrect result as console
Posted: Mon Apr 08, 2019 6:13 pm
Using MacOS 10.12 High Sierra x64 with PureBasic 5.70 LTS x64
I have a folder on my "Desktop" called "PBStuff" and inside a folder called "dirtest"... this code is saved and compiled inside this folder.
When compiled as MacOS executable it returns the correct result:
/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.
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.