Skip to content
Snippets Groups Projects
dct_update_conf.py 460 B
'''
Created on Apr 25, 2012

@author: vigano
'''

import os
import sys

from dct_io_xml import DCTConfUpdater

if __name__ == '__main__':
    dctPath = os.path.abspath(os.path.dirname(sys.argv[0]))
    dctPath = os.path.join(dctPath, os.path.pardir)
    dctPath = os.path.abspath(dctPath)

    upd = DCTConfUpdater(dctPath)
    confexamplefile = os.path.join(dctPath, "zUtil_Conf", "conf.example.xml")
    upd.safelyInstallNewFile(confexamplefile, "conf.xml")