CC-2567: Install api_client separately from pypo
This commit is contained in:
parent
28b71c61d6
commit
ff2fcde7c0
13 changed files with 44 additions and 8 deletions
21
python_apps/api_clients/install/api_client_uninstall.py
Normal file
21
python_apps/api_clients/install/api_client_uninstall.py
Normal file
|
@ -0,0 +1,21 @@
|
|||
import os
|
||||
import sys
|
||||
from configobj import ConfigObj
|
||||
|
||||
def remove_path(path):
|
||||
os.system('rm -rf "%s"' % path)
|
||||
|
||||
def get_current_script_dir():
|
||||
return os.path.dirname(os.path.realpath(__file__))
|
||||
|
||||
current_script_dir = get_current_script_dir()
|
||||
|
||||
"""load config file"""
|
||||
try:
|
||||
config = ConfigObj("%s/../api_client.cfg" % current_script_dir)
|
||||
except Exception, e:
|
||||
print 'Error loading config file: ', e
|
||||
sys.exit(1)
|
||||
|
||||
print "Removing API Client files"
|
||||
remove_path(config["bin_dir"])
|
Loading…
Add table
Add a link
Reference in a new issue