Skip to content

Commit cf5b795

Browse files
committed
current working directoy is now set to user.home instead of /
1 parent 1247003 commit cf5b795

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/jruby4max/rubysupport/ScriptEvaluator.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ public void undeclareGlobal( String variableName ) {
9393
protected void resetEngineContext() {
9494
container = new ScriptingContainer( LocalContextScope.SINGLETHREAD, LocalVariableBehavior.TRANSIENT );
9595
container.setCompatVersion( compatVersion );
96+
container.setCurrentDirectory( System.getProperty( "user.home" ) );
9697
}
9798

9899
protected void declareGlobalInternal( String variableName, Object obj ) {

0 commit comments

Comments
 (0)