Files

13 lines
324 B
Python

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