X-Git-Url: http://iramuteq.org/git?p=iramuteq;a=blobdiff_plain;f=checkinstall.py;h=65af3ff8ff87e65ae1642458990ff26af922da56;hp=38640edf16e94e08a22e2ba650d8f09ec5eb8e8b;hb=d1d24d86422c9e9805516190ea17a379201f9300;hpb=d33694ef233bd4a28e69d88e9eef3c5c129442fe diff --git a/checkinstall.py b/checkinstall.py index 38640ed..65af3ff 100644 --- a/checkinstall.py +++ b/checkinstall.py @@ -7,7 +7,7 @@ import os import sys import shutil -from chemins import ConstructConfigPath +from chemins import ConstructConfigPath, ConstructDicoPath from functions import exec_rcode, exec_RCMD import wx import tempfile @@ -54,6 +54,8 @@ def UpgradeConf(self) : def CreateIraDirectory(UserConfigPath,AppliPath): if not os.path.exists(UserConfigPath): os.mkdir(UserConfigPath) + if not os.path.exists(os.path.join(UserConfigPath, 'dictionnaires')) : + os.mkdir(os.path.join(UserConfigPath, 'dictionnaires')) def CopyConf(self) : DictUser = self.ConfigPath @@ -67,6 +69,11 @@ def CopyConf(self) : if item == u'preferences' : if not os.path.exists(filein) : shutil.copyfile(DictAppli[item],filein) + dicoUser = self.DictPath + dicoAppli = ConstructDicoPath(self.AppliPath) + for fi in dicoUser : + if not os.path.exists(dicoUser[fi]) and os.path.exists(dicoAppli[fi]): + shutil.copyfile(dicoAppli[fi], dicoUser[fi]) def CheckRPath(PathPath): if not os.path.exists(PathPath.get('PATHS','rpath')):