Why do you so often write nonsense about things that you do not understand? Go trolling somewhere else.TI-994A wrote:In any case, when did you become the sheriff of the Feature Requests and Wishlists forum.
#PB_Compiler_ExecutableFile
-
- Addict
- Posts: 4779
- Joined: Thu Jun 07, 2007 3:25 pm
- Location: Berlin, Germany
Re: #PB_Compiler_ExecutableFile
-
- Addict
- Posts: 1520
- Joined: Wed Nov 12, 2008 5:01 pm
- Location: Russia
Re: #PB_Compiler_ExecutableFile
Yes.TI-994A wrote:I'm assuming that you're proposing the addition of a pre-defined target for the executable, as is normally found in other programming IDEs, where debug and release folders are implemented.User_Russian wrote:I propose add the constants stored path to the compiled executable. This is useful for working with files in a folder with a compiled executable.


But need constant, storing path to release executable file. Because the file is not always located in the folder with the source code.
-
- Addict
- Posts: 4779
- Joined: Thu Jun 07, 2007 3:25 pm
- Location: Berlin, Germany
Re: #PB_Compiler_ExecutableFile
Now I understand what you are after. Thank you. 

Re: #PB_Compiler_ExecutableFile
Why is it important for you to understand someone else's feature request? It's a matter for the dev team; not for you to scrutinise or criticise.Little John wrote:Why do you so often write nonsense about things that you do not understand? Go trolling somewhere else.
It seems that I understood it well enough.User_Russian wrote:Yes.TI-994A wrote:I'm assuming that you're proposing the addition of a pre-defined target for the executable, as is normally found in other programming IDEs, where debug and release folders are implemented.User_Russian wrote:I propose add the constants stored path to the compiled executable. This is useful for working with files in a folder with a compiled executable.![]()
It's you who are lost. As always.

Texas Instruments TI-99/4A Home Computer: the first home computer with a 16bit processor, crammed into an 8bit architecture. Great hardware - Poor design - Wonderful BASIC engine. And it could talk too! Please visit my YouTube Channel 

Re: #PB_Compiler_ExecutableFile
Your understanding is worth squat, but you're welcome!Little John wrote:Now I understand what you are after. Thank you.

Texas Instruments TI-99/4A Home Computer: the first home computer with a 16bit processor, crammed into an 8bit architecture. Great hardware - Poor design - Wonderful BASIC engine. And it could talk too! Please visit my YouTube Channel 

Re: #PB_Compiler_ExecutableFile
@UserRussian: Can't you already use something like this?
You then would compile the executable to your release directory when you were done debugging it.
You seemed to have helped discover what UserRussian was requesting but you also seem to poke everybody in the eye while doing it.
Code: Select all
#releaseDirectory = "C:\folder_1\"
CompilerIf #PB_Compiler_Debugger
;Define configurationFiles_directory.s = #releaseDirectory ; use this like if the executible will reside in a specific directory
;Or using a directory relative to the source directory, even if the code is compiled to a temporary directory:
;Compiler settings// Compile/Run: Create temporary executable in the source directory
;Example assumes configuration files set in the parent folder of the source directory.
Define configurationFiles_directory.s = GetCurrentDirectory() + "..\"
CompilerElse
;The executable file is stored in a temporary location, but it will be executed with the
;current path set to the directory of the source code; so loading a file from the same
;directory as the source code will work.
Define configurationFiles_directory.s = GetCurrentDirectory() + "..\" ; or = GetPathPart(ProgramFilename())
CompilerEndIf
MessageRequester("configuration directory", configurationFiles_directory)
@TI-994A: It's always good to have a worthwhile description, whether in code, written language or a picture. Little John merely asked for a little clarification. English is the language of this forum (for better or for worse). Its seems your rudeness about his grammar is not conducive to our international friends.TI-994A wrote:Little John wrote:
That does not make sense...
That please explain it more detailed (?), in understandable English.
But you still did not explain in detail how such a constant could help (in) solving the problem -- although I have asked repeatedly.
So how can a changing (changeable?) path be stored in the constant #PB_Compiler_ExecutableFile?
It's truly bad form to disparage the language aptitude of our international friends; especially when you are clearly no grammarian yourself, Herr LJ.

Easy there slugger, are you saying you're the sheriff in town? You sound more like someone in the peanut gallery.TI-994A wrote:In any case, when did you become the sheriff of the Feature Requests and Wishlists forum.

You seemed to have helped discover what UserRussian was requesting but you also seem to poke everybody in the eye while doing it.
Last edited by Demivec on Sun Sep 13, 2015 10:18 am, edited 4 times in total.
-
- Addict
- Posts: 4779
- Joined: Thu Jun 07, 2007 3:25 pm
- Location: Berlin, Germany
Re: #PB_Compiler_ExecutableFile
Yes, I wanted to understand User_Russian's feature request.TI-994A wrote:Why is it important for you to understand someone else's feature request?Little John wrote:Why do you so often write nonsense about things that you do not understand? Go trolling somewhere else.
I don't care whether or not you understand the reason why.
And as you have demonstrated in the past repeatedly, as serious discussion with you is not possible anyway.
Just leave me alone with your bullshit.
You'll have to look for someone else who plays with you.
-
- Addict
- Posts: 1520
- Joined: Wed Nov 12, 2008 5:01 pm
- Location: Russia
Re: #PB_Compiler_ExecutableFile
On another computer, the path to source code may be other.Demivec wrote:#releaseDirectory = "C:\folder_1\"
Need an absolute path to release executable file.
Re: #PB_Compiler_ExecutableFile
True.User_Russian wrote:On another computer, the path to source code may be other.Demivec wrote:#releaseDirectory = "C:\folder_1\"
I think you are describing that you or a group of individuals is working on separate machines to produce and debug the source code. Also you are saying that you can't share the same source code if each person's machine required a different definition (i.e. literal constant) in the code of where the files were. Are those statements correct?
The code sample I shared would still use whichever directory you decided on to hold the configuration files relative to the source code, when the program was debugging. The constant '#releaseDirectory' doesn't have to be used, I included two possibilities because I couldn't determine what you were describing.
If you compile the source to an executable (for release) the program could use GetPathPart(ProgramFilename()). If it was merely the Compile/Run option I would use GetCurrentDirectory() + "..\" because this is also based on the source code location (even if the file is compiled to a temp location).
Unfortunately I didn't see any compiler options to determine at compile-time if the program was being compiled to an executable or by using the Compile/Run option.
I still don't see an easier solution but I guess I will just have to wait for Fred or freaks' response.
Thanks for your responses.
Re: #PB_Compiler_ExecutableFile
Pity I had to stoop to his level.Demivec wrote:You sound more like someone in the peanut gallery.

Finally, something you could relate to. Enjoy!Little John wrote:Just leave me alone with your bullshit.

Texas Instruments TI-99/4A Home Computer: the first home computer with a 16bit processor, crammed into an 8bit architecture. Great hardware - Poor design - Wonderful BASIC engine. And it could talk too! Please visit my YouTube Channel 
