Skip to content

Commit 0012f04

Browse files
committed
add __DIR__ as an alias to __DIRECTORY__
Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
1 parent ce0fb12 commit 0012f04

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

  • bundles/org.openhab.core.model.yaml/src/main/java/org/openhab/core/model/yaml/internal/util/preprocessor

bundles/org.openhab.core.model.yaml/src/main/java/org/openhab/core/model/yaml/internal/util/preprocessor/YamlPreprocessor.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@ private static void addSpecialVariables(Map<String, String> variables, Path file
152152
variables.put("__FILE_NAME__", fileName);
153153
variables.put("__FILE_EXT__", fileExtension);
154154
variables.put("__DIRECTORY__", absolutePath.getParent().toString());
155+
variables.put("__DIR__", absolutePath.getParent().toString());
155156
}
156157

157158
/*

0 commit comments

Comments
 (0)