Page 1 of 1

HOME environment variable - how to access it?

Posted: Fri Sep 24, 2010 4:34 pm
by HJarausch
Hi,

I want to create a project template for my students.
For that I create a project myself and save it as template afterwards.
But, I don't like to enter my own home directory in the project path.
I'd like to put $HOME/C++-Lab there, where $HOME accesses the HOME environment variable
which gives the name of the current user's home directory (on Linux).

How can I achieve that?

Many thanks for a hint,
Helmut.

Re: HOME environment variable - how to access it?

Posted: Fri Sep 24, 2010 4:42 pm
by eranif
You should surround it with braces '$(HOME)'
Eran

Re: HOME environment variable - how to access it?

Posted: Fri Sep 24, 2010 5:01 pm
by HJarausch
Thanks, but I have even tried this

$(PATH)/C++-Kurs

but I get "invalid path" though this does exist.

Helmut.

Re: HOME environment variable - how to access it?

Posted: Fri Sep 24, 2010 6:22 pm
by eranif
Do you mean: you want to save $(HOME) in the 'New project' dialog? you can't do that.

However, the template that you have created can be used on other computers, since codelite keeps all paths relative. None of the paths will be kept as absolute path
Eran

Re: HOME environment variable - how to access it?

Posted: Fri Sep 24, 2010 6:26 pm
by HJarausch
eranif wrote:Do you mean: you want to save $(HOME) in the 'New project' dialog? you can't do that.

However, the template that you have created can be used on other computers, since codelite keeps all paths relative. None of the paths will be kept as absolute path
Thanks! Good to know,
Helmut.