Uploaded image for project: 'ROOT'
  1. ROOT
  2. ROOT-10155

gEnv.SetValue always sets value to 1 from Python

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Low
    • Resolution: Fixed
    • 6.18/00
    • 6.22/00
    • PyROOT
    • Centos7, Python2/Python3

    Description

      As reported here:

      https://root-forum.cern.ch/t/multiple-proxies-to-process-trees-in-one-script/34267/11

      The following code does not set properly the value of a variable in `gEnv`:

      >>> import ROOT
      >>> ROOT.gEnv.GetValue("ACLiC.LinkLibs", -1)
      -1
      >>> ROOT.gEnv.SetValue("ACLiC.LinkLibs", 0)
      >>> ROOT.gEnv.GetValue("ACLiC.LinkLibs", -1)
      1

      whereas in C++ it does:

      root [0] gEnv->GetValue("ACLiC.LinkLibs", -1)
      (Int_t) -1
      root [1] gEnv->SetValue("ACLiC.LinkLibs", 0)
      root [2] gEnv->GetValue("ACLiC.LinkLibs", -1)
      (Int_t) 0

      Attachments

        Activity

          People

            etejedor Enric Tejedor Saavedra
            etejedor Enric Tejedor Saavedra
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: