Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: AndyJ on December 15, 2023, 10:24:13 am

Title: Is it possible to get the profile/personality name?
Post by: AndyJ on December 15, 2023, 10:24:13 am
Is it possible to get the current profile/personality name as a variable so that I can use it in paths etc within a project?

Thanks in advance for any help with this
Title: Re: Is it possible to get the profile/personality name?
Post by: Miguel Gimenez on December 15, 2023, 11:16:55 am
The list of avaliable built-in variables is here (https://wiki.codeblocks.org/index.php/Variable_expansion). Looks like there are none related to personalities, but you can define your own variable in each personality.
Title: Re: Is it possible to get the profile/personality name?
Post by: Pecan on December 15, 2023, 06:41:15 pm
I define the personality variable in a .cmd file and use it to start codeblocks.exe.
That makes it available to any process in the .cmd file.