RE: Using environment variables

From: Philippe Canal <pcanal_at_fnal.gov>
Date: Mon, 31 Mar 2008 08:37:04 -0500


Hi,

   gROOT->LoadMacro("$var/myfile.cxx")

should work.

Cheers,
Philippe.

-----Original Message-----
From: owner-roottalk_at_root.cern.ch [mailto:owner-roottalk_at_root.cern.ch] On Behalf Of Alberto Pulvirenti
Sent: Thursday, March 27, 2008 4:59 AM
To: Root
Subject: [ROOT] Using environment variables

Dear all,

a very simple question.
If one wants to use an environment variable containing a path inside a method like "gROOT->LoadMacro()", how should he put it in?

I tried:

gROOT->LoadMacro("$(var)")
gROOT->LoadMacro("${var}")
gROOT->LoadMacro("$var")

and they apparently don't work.

What is the right syntax?

Thanks, cheers

    Alberto Received on Mon Mar 31 2008 - 15:37:15 CEST

This archive was generated by hypermail 2.2.0 : Mon Mar 31 2008 - 23:50:02 CEST