RE: [ROOT] Accesing script name from inside the script

From: Philippe Canal (pcanal@fnal.gov)
Date: Mon Jul 14 2003 - 16:13:40 MEST


Hi,

You can use __FILE__ and __LINE__ inside a CINT macro to retrive the name of
the file and line number where it is stored.  What is your purpose in
retrieve the 'name' of the macro?  Which 'name' are you refering to?

Cheers,
Philippe.

-----Original Message-----
From: owner-roottalk@pcroot.cern.ch [mailto:owner-roottalk@pcroot.cern.ch]On
Behalf Of Stilianos Kesisoglou
Sent: Monday, July 14, 2003 7:59 AM
To: roottalk@pcroot.cern.ch; roottalk@pcroot.cern.ch; about-root@fnal.gov
Subject: [ROOT] Accesing script name from inside the script


Hi,

    Is it possible to access the name of a script that is executed
on ROOT from inside the script?

    For example I have a ROOT session started and I am executing
the script named "myScript.C":

    root[].x myScript.C

    What I want is from the inside of the script "myScript.C" to access it's
name.
    Is there any global parameter where this is stored (obviously CINT must
know
the name of the script being executed), or maybe this information is passed
to the script
itself (like in the UNIX shell case)?

    Thanks!

Stelios.


#################################################################
#################################################################
#################################################################
#####
#####
#####
#################################################################
#################################################################
#################################################################



This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:13 MET