Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: BtM on February 08, 2012, 05:10:42 pm

Title: Using a variable I.E $(CODEBLOCKS) in the project wizard project path?
Post by: BtM on February 08, 2012, 05:10:42 pm
Using a variable I.E $(CODEBLOCKS) in the project wizard project path?
I try and it fails I can find now way to change the inner workings of the getprogectpath pane of the project wizard and the path is not exposed as far as I can tell
any help would be appreciated
Ben
Title: Re: Using a variable I.E $(CODEBLOCKS) in the project wizard project path?
Post by: stahta01 on February 08, 2012, 06:52:54 pm
Guess from someone who does NOT do CB Scripting.

Code
GetConfigManager().GetExecutableFolder()

Based on source code reading and these links
http://wiki.codeblocks.org/index.php?title=Wizard_Scripting_Commands (http://wiki.codeblocks.org/index.php?title=Wizard_Scripting_Commands)
http://wiki.codeblocks.org/index.php?title=Scripting_commands (http://wiki.codeblocks.org/index.php?title=Scripting_commands)

Tim S.
Title: Re: Using a variable I.E $(CODEBLOCKS) in the project wizard project path?
Post by: BtM on February 08, 2012, 07:17:54 pm
Thanks will try it out  it's one way of going around the problem
Title: Re: Using a variable I.E $(CODEBLOCKS) in the project wizard project path?
Post by: Jenna on February 08, 2012, 07:19:38 pm
You can have a look at the scripts shipped with C::B, e.g. the make_dist.script.
Title: Re: Using a variable I.E $(CODEBLOCKS) in the project wizard project path?
Post by: BtM on February 08, 2012, 07:31:04 pm
thanks will do
_Ben