OSDN Git Service

call_subprocess now accepts an array of arguments, so that arguments containing space...
[molby/Molby.git] / Scripts / crystal.rb
index 45a46f7..5ba0a5b 100755 (executable)
@@ -1531,7 +1531,7 @@ def cmd_show_ortep
          if FileTest.exist?("TEP001.PRN")
            File.unlink("TEP001.PRN")
          end
-         pid = call_subprocess(tepexe, "Running ORTEP", nil, "NUL", "NUL")
+         pid = call_subprocess([tepexe], "Running ORTEP", nil, "NUL", "NUL")
          if FileTest.exist?("TEP001.PRN")
            File.rename("TEP001.PRN", "TEP001.ps")
          end