Files
pixel-streaming-session-ser…/uninstall_package.py
T
2023-02-09 18:40:11 +05:00

12 lines
302 B
Python

import config
import headers.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')