Skip to content

Commit 5663931

Browse files
committed
Update
1 parent 424d6f2 commit 5663931

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

ALICE3/Core/FastTracker.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
#include <TEnv.h>
2323
#include <THashList.h>
2424
#include <TObject.h>
25+
#include <TSystem.h>
2526

2627
#include <map>
2728
#include <string>
@@ -48,6 +49,11 @@ class GeometryContainer
4849
static std::map<std::string, std::map<std::string, std::string>> parseTEnvConfiguration(std::string filename)
4950
{
5051
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+
}
5157
TEnv env(filename.c_str());
5258
THashList* table = env.GetTable();
5359
std::vector<std::string> layers;

0 commit comments

Comments
 (0)