cc-4227
Added comments. Removed bad/old upgrade code.
This commit is contained in:
parent
e46f0d2b4d
commit
48ae4a578f
3 changed files with 2 additions and 7 deletions
|
@ -2,7 +2,6 @@ import os
|
|||
import shutil
|
||||
import sys
|
||||
from configobj import ConfigObj
|
||||
import upgrade2dot2
|
||||
|
||||
def get_current_script_dir():
|
||||
return os.path.dirname(os.path.realpath(__file__))
|
||||
|
@ -21,8 +20,6 @@ current_script_dir = get_current_script_dir()
|
|||
if not os.path.exists(PATH_INI_FILE):
|
||||
shutil.copy('%s/../api_client.cfg'%current_script_dir, PATH_INI_FILE)
|
||||
|
||||
upgrade2dot2.upgrade('%s/../api_client.cfg'% current_script_dir, PATH_INI_FILE)
|
||||
|
||||
"""load config file"""
|
||||
try:
|
||||
config = ConfigObj("%s/../api_client.cfg" % current_script_dir)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue