Fix bug around spawning worker processes.

We were expecting to find the path to the `strawboss` binary implicitly from
the environment, which meant that configuration was also implicit, and required
more setup. Now the path to the binary is explicit in the StrawBoss runtime
configuration, and the path to the configuration file can also be explicitly given.
This commit is contained in:
Jonathan Bernard
2017-05-11 10:43:55 -05:00
parent 42f37a21e6
commit a1100f17d8
6 changed files with 47 additions and 15 deletions

View File

@ -41,6 +41,7 @@ Options
else: "strawboss.config.json"
var cfg = loadStrawBossConfig(cfgFile)
cfg.pathToExe = paramStr(0)
if not existsDir(cfg.artifactsRepo):
echo "Artifacts repo (" & cfg.artifactsRepo & ") does not exist. Creating..."
createDir(cfg.artifactsRepo)