]> gerrit.simantics Code Review - simantics/platform.git/commit
Set __SCRIPT_PATH__ and __SCRIPT_DIR__ variables in SCL runFromFile
authorTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Tue, 30 Aug 2022 10:03:08 +0000 (13:03 +0300)
committerTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Tue, 30 Aug 2022 10:03:08 +0000 (13:03 +0300)
commit35d6bef0e0c63a1cbf5953fe6a1a192f57e5bdc1
tree50166696bdc28b07d2dd31867364a70924d3c984
parentfe1c824058f007a649d32da56664e5c7d3259444
Set __SCRIPT_PATH__ and __SCRIPT_DIR__ variables in SCL runFromFile

Scripts executed can now read `__SCRIPT_PATH__ :: Maybe Path` and
`__SCRIPT_DIR__ :: Maybe Path` to perform file system resolution logic
based on the ran script's file system location.

gitlab #863
bundles/org.simantics.scl.compiler/src/org/simantics/scl/compiler/commands/CommandSession.java