X-Git-Url: https://code.consxy.com/gitweb/gitweb.cgi?p=clnl;a=blobdiff_plain;f=bin%2Fruncmd.scala;h=12e49a7703d77ecdcde971af46f2594c5d9dc42f;hp=b91ed4e482999eacf455b99f600ce6d81f85894b;hb=807df6b;hpb=3ae0c35e27580b247652dff608dd8c4d29f16bff diff --git a/bin/runcmd.scala b/bin/runcmd.scala index b91ed4e..12e49a7 100755 --- a/bin/runcmd.scala +++ b/bin/runcmd.scala @@ -86,6 +86,8 @@ Polygon -7500403 true false 219 85 210 105 193 99 201 83 @#$#@#$#@ NetLogo 5.2.0""") +} else if (input.length > 3 && input(3).length > 0) { + workspace.openFromSource(url2String("file:" + input(3))) } else { workspace.openFromSource(url2String("file:resources/empty.nlogo")) }