X-Git-Url: http://iramuteq.org/git?p=iramuteq;a=blobdiff_plain;f=checkinstall.py;h=d5c59d10c878457e09fbf240f7f0fb884d415b81;hp=742c15ab5ba59f31fab9eec6a90c094ce2b39a0d;hb=0ddddd038d216355e285058b9308f1975de0105a;hpb=be2de22859c8f59abe9e1082981e4c3a62e9b7ca;ds=sidebyside diff --git a/checkinstall.py b/checkinstall.py index 742c15a..d5c59d1 100644 --- a/checkinstall.py +++ b/checkinstall.py @@ -58,6 +58,7 @@ def CreateIraDirectory(UserConfigPath,AppliPath): os.mkdir(os.path.join(UserConfigPath, 'dictionnaires')) def CopyConf(self) : + log.info('Copy conf') DictUser = self.ConfigPath DictAppli = ConstructConfigPath(self.AppliPath,user=False) for item, filein in DictUser.iteritems(): @@ -71,8 +72,9 @@ def CopyConf(self) : shutil.copyfile(DictAppli[item],filein) dicoUser = self.DictPath dicoAppli = ConstructDicoPath(self.AppliPath) + log.info(dicoAppli) for fi in dicoUser : - if not os.path.exists(dicoUser[fi]) : + if not os.path.exists(dicoUser[fi]) and os.path.exists(dicoAppli[fi]): shutil.copyfile(dicoAppli[fi], dicoUser[fi]) def CheckRPath(PathPath):