X-Git-Url: https://code.consxy.com/gitweb/gitweb.cgi?p=clnl;a=blobdiff_plain;f=bin%2Fruncmd.scala;h=52658473085bd3eafadfd39b2186c9de56f85b41;hp=b91ed4e482999eacf455b99f600ce6d81f85894b;hb=7fac438c77bb0e3749bababc0cc89a1366893444;hpb=bc6386a709da76fef1393a11a7251b4be7032fda diff --git a/bin/runcmd.scala b/bin/runcmd.scala index b91ed4e..5265847 100755 --- a/bin/runcmd.scala +++ b/bin/runcmd.scala @@ -86,8 +86,10 @@ 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")) + workspace.openFromSource(url2String("file:resources/clnl/empty.nlogo")) } workspace.mainRNG.setSeed(15)