X-Git-Url: http://iramuteq.org/git?p=iramuteq;a=blobdiff_plain;f=checkinstall.py;fp=checkinstall.py;h=742c15ab5ba59f31fab9eec6a90c094ce2b39a0d;hp=38640edf16e94e08a22e2ba650d8f09ec5eb8e8b;hb=be2de22859c8f59abe9e1082981e4c3a62e9b7ca;hpb=d33694ef233bd4a28e69d88e9eef3c5c129442fe diff --git a/checkinstall.py b/checkinstall.py index 38640ed..742c15a 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]) : + shutil.copyfile(dicoAppli[fi], dicoUser[fi]) def CheckRPath(PathPath): if not os.path.exists(PathPath.get('PATHS','rpath')):