Skip to content

Commit

Permalink
Merge pull request #1091 from ChrSteinert/dev
Browse files Browse the repository at this point in the history
Hotfix for script-local cache folder
  • Loading branch information
adamralph committed Sep 7, 2015
2 parents bf8969a + e673406 commit 5b6e25b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/ScriptCs/Command/ExecuteScriptCommand.cs
Expand Up @@ -65,6 +65,9 @@ public CommandResult Execute()
_composer.Compose(workingDirectory);

_scriptExecutor.Initialize(assemblyPaths, _scriptPackResolver.GetPacks(), ScriptArgs);

// HACK: This is a (dirty) fix for #1086. This might be a temporary solution until some further refactoring can be done.
_scriptExecutor.ScriptEngine.CacheDirectory = Path.Combine(workingDirectory ?? _fileSystem.CurrentDirectory, _fileSystem.DllCacheFolder);
var scriptResult = _scriptExecutor.Execute(_script, ScriptArgs);
var commandResult = Inspect(scriptResult);
_scriptExecutor.Terminate();
Expand Down

0 comments on commit 5b6e25b

Please sign in to comment.