def init(): dotrc = Glo.dot_buildc_rc_path() if os.path.exists(dotrc): print dotrc + ' has been already existed! Just config it!' else: buildc_rc_in = Glo.buildc_rc_tpl_path() if os.path.exists(buildc_rc_in): shutil.copyfile(buildc_rc_in, dotrc) print "Copy " + buildc_rc_in + " to " + dotrc + " OK!" print "Please config " + dotrc + " before you use other buildc commands!" return True