Class VirtualEnvironmentRunner

java.lang.Object
qupath.ext.biop.cmd.VirtualEnvironmentRunner

public class VirtualEnvironmentRunner extends Object
A wrapper to run python virtualenvs, that tries to figure out the commands to run based on the environment type
  • Constructor Details

  • Method Details

    • setArguments

      public void setArguments(List<String> arguments)
      This is the code you actually want to run after 'python'. For example adding Arrays.asList("--version") should return the version of python that is being run.
      Parameters:
      arguments - any cellpose or omnipose command line argument
    • runCommand

      public void runCommand(boolean waitUntilDone) throws IOException
      This builds, runs the command and outputs it to the logger as it is being run
      Parameters:
      waitUntilDone - whether to wait for the process to end or not before exiting this method
      Throws:
      IOException - in case there is an issue with the process
    • getProcess

      public Process getProcess()
    • getProcessLog

      public List<String> getProcessLog()
    • startWatchService

      public void startWatchService(Path folderToListen) throws IOException
      Throws:
      IOException
    • getChangedFiles

      public List<String> getChangedFiles() throws InterruptedException
      Throws:
      InterruptedException
    • closeWatchService

      public void closeWatchService() throws IOException
      Throws:
      IOException