We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d5fd54c commit 38e9539Copy full SHA for 38e9539
contrib/Installer/mtfg-ofs-extension-installer.py
@@ -8,6 +8,7 @@
8
import time
9
import traceback
10
import shutil
11
+import subprocess
12
13
from packaging import version
14
from bs4 import BeautifulSoup # beautifulsoup4
@@ -78,6 +79,13 @@ def get_download_urls_with_api():
78
79
error("Download URL not found (" + LATEST_RELEASE_API_URL + ")")
80
81
82
+def process_exists(process_name):
83
+ call = 'TASKLIST', '/FI', 'imagename eq %s' % process_name
84
+ output = subprocess.check_output(call).decode()
85
+ last_line = output.strip().split('\r\n')[-1]
86
+ return last_line.lower().startswith(process_name.lower())
87
+
88
89
def is_latest_version_installed(version_file, version):
90
if os.path.exists(version_file):
91
with open(version_file, 'r') as f:
0 commit comments