Files
pixel-streaming-session-ser…/uninstall_package.py
T
2023-02-03 13:29:50 +05:00

12 lines
298 B
Python

import config
import lib.powershell as powershell
import os
deploy_path = config.deploy_path
if os.path.isdir(deploy_path):
powershell.run_command_no_dir('pm2 delete all; rm "' + deploy_path + '" -r -force;')
print('Package successfully removed')
else:
print('Package not installed')