Create #PB_MainFilePath

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
Kwai chang caine
Always Here
Always Here
Posts: 5494
Joined: Sun Nov 05, 2006 11:42 pm
Location: Lyon - France

Create #PB_MainFilePath

Post by Kwai chang caine »

ImageThe happiness is a road...
Not a destination
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Re: Create #PB_MainFilePath

Post by ts-soft »

Why not using: #PB_Compiler_FilePath?
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image
User avatar
Kwai chang caine
Always Here
Always Here
Posts: 5494
Joined: Sun Nov 05, 2006 11:42 pm
Location: Lyon - France

Re: Create #PB_MainFilePath

Post by Kwai chang caine »

Hello Ts-Soft

Excuse me for the later answer, i have forgotten to suscribe to this thread and not see your answer :oops:

Simply because #PB_Compiler_FilePath return the path of the file where it is writing, in my case all the PBI.
But if you want the path of the main who have called the PBI, you are "chocolate" (French expression :mrgreen:)
Fred have modified the behaviour of PBI, but not think, sometime it can be important to return to the main file, and then knowing his path
ImageThe happiness is a road...
Not a destination
Post Reply