GetCurrentDirectory incorrect result as console

Post bugs related to the IDE here
User avatar
Paul
PureBasic Expert
PureBasic Expert
Posts: 1243
Joined: Fri Apr 25, 2003 4:34 pm
Location: Canada
Contact:

GetCurrentDirectory incorrect result as console

Post by Paul »

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.

Code: Select all

debug GetCurrentDirectory()
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.
Image Image