It is currently Fri Sep 20, 2019 2:29 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: GetCurrentDirectory incorrect result as console
PostPosted: Mon Apr 08, 2019 6:13 pm 
Offline
PureBasic Expert
PureBasic Expert
User avatar

Joined: Fri Apr 25, 2003 4:34 pm
Posts: 904
Location: Canada
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:
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


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye