installScript static method

Future<bool> installScript()

Implementation

static Future<bool> installScript() async {
  bool pythonIsInstalled = await _checkPython3Installed();
  if (!pythonIsInstalled) {
    debugPrint(
        "Python3 is not installed. Install Python3 to use the library.");
    return false;
  }
  bool scriptCopied = await Files.exists(["fins.py", "fins_bridge.py"]);
  return scriptCopied || await _copyPythonScript();
}