self.repIni = repIni
if self.code == None : self.code=''
- if sys.platform[0:5]=="linux" :
+ self.rep_user = os.path.join(os.path.expanduser("~"),'.config/Eficas',self.code)
+ #if sys.platform[0:5]=="linux" :
#self.rep_user = os.path.join(os.environ['HOME'],'.config/Eficas',self.code)
- self.rep_user = os.path.join(os.path.expanduser("~"),'.config/Eficas',self.code)
- else :
- self.rep_user = os.path.join('C:/','.config/Eficas',self.code)
+ #else :
+ # self.rep_user = os.path.join('C:/','.config/Eficas',self.code)
self.setValeursParDefaut()
#else: self.parent=None
if not os.path.isdir(self.savedir) :
- if sys.platform[0:5]=="linux" :
+ self.savedir=os.path.expanduser("~")
+ #if sys.platform[0:5]=="linux" :
#self.savedir=os.environ['HOME']
- self.savedir=os.path.expanduser("~")
- else:
- self.savedir='C:/'
+ #else:
+ # self.savedir='C:/'
self.path_doc = os.path.abspath(os.path.join(self.repIni,'..','Doc'))
self.exec_acrobat = 'acroread'
nomDir="Eficas_"+self.code
- if sys.platform[0:5]=="linux" :
+ self.savedir = os.path.abspath(os.path.join(os.path.expanduser("~"),nomDir))
+ #if sys.platform[0:5]=="linux" :
#self.savedir = os.path.abspath(os.path.join(os.environ['HOME'],nomDir))
- self.savedir = os.path.abspath(os.path.join(os.path.expanduser("~"),nomDir))
-
- else:
- self.savedir = os.path.abspath('C:/')
+ #else:
+ # self.savedir = os.path.abspath('C:/')
self.modeNouvCommande='initial'
self.affiche="alpha"
self.closeAutreCommande = False
def initRecents(self):
self.recent = []
try :
- if sys.platform[0:5]=="linux" :
+ rep=os.path.join(os.path.expanduser("~"),'.config/Eficas',self.code)
+ #if sys.platform[0:5]=="linux" :
#rep=os.path.join(os.environ['HOME'],'.config/Eficas',self.code)
- rep=os.path.join(os.path.expanduser("~"),'.config/Eficas',self.code)
- rep=os.path.join(os.environ['HOME'],'.config/Eficas',self.code)
- else :
- rep=os.path.join('C:/','.config/Eficas',self.code)
+ #else :
+ # rep=os.path.join('C:/','.config/Eficas',self.code)
monFichier=rep+"/listefichiers_"+self.code
index=0
f=open(monFichier)