We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 424d6f2 commit 5663931Copy full SHA for 5663931
ALICE3/Core/FastTracker.h
@@ -22,6 +22,7 @@
22
#include <TEnv.h>
23
#include <THashList.h>
24
#include <TObject.h>
25
+#include <TSystem.h>
26
27
#include <map>
28
#include <string>
@@ -48,6 +49,11 @@ class GeometryContainer
48
49
static std::map<std::string, std::map<std::string, std::string>> parseTEnvConfiguration(std::string filename)
50
{
51
std::map<std::string, std::map<std::string, std::string>> configMap;
52
+ if (filename.find('$') != std::string::npos) {
53
+ // Expand environment variables in filename
54
+ const char* expanded = gSystem->ExpandPathName(filename.c_str());
55
+ filename = expanded;
56
+ }
57
TEnv env(filename.c_str());
58
THashList* table = env.GetTable();
59
std::vector<std::string> layers;
0 commit comments