OSDN Git Service

call_subprocess now accepts an array of arguments, so that arguments containing space...
[molby/Molby.git] / Scripts / mopac6.rb
index 04cb78d..51e9261 100755 (executable)
@@ -79,9 +79,9 @@ class Molecule
        #  Execute mopac
        Dir.chdir(scrdir)
        if mol
-         pid = mol.call_subprocess_async(mopexe, term_callback, timer_callback, "NUL", "NUL")
+         pid = mol.call_subprocess_async([mopexe], term_callback, timer_callback, "NUL", "NUL")
        else
-         pid = call_subprocess(mopexe, "Running MOPAC", nil, "NUL", "NUL")
+         pid = call_subprocess([mopexe], "Running MOPAC", nil, "NUL", "NUL")
          term_callback.call(nil, pid)
        end
        Dir.chdir(cwd)