code/superant.com.rwdshell/playrubyscript.rb in rwddemo-0.90 vs code/superant.com.rwdshell/playrubyscript.rb in rwddemo-0.91
- old
+ new
@@ -2,10 +2,11 @@
nametext = "%s" % [@a_rubyscriptcmd]
begin # exception trapped block
- fileName = "scripts/" + nametext + ".rb"
+
+ fileName = $shellscript_directory + "/" + nametext + ".rb"
rubyfile_contents = File.read( fileName)
temp = eval( rubyfile_contents)