]> SALOME platform Git repositories - tools/eficas.git/commitdiff
Salome HOME
chgt mineur patchs CEA V9_6_0a1 V9_6_0a2 V9_6_0b1
authorpascale.noyret <pascale.noyret@edf.fr>
Wed, 30 Sep 2020 10:24:42 +0000 (12:24 +0200)
committerpascale.noyret <pascale.noyret@edf.fr>
Wed, 30 Sep 2020 10:24:42 +0000 (12:24 +0200)
InterfaceQT4/configuration.py
InterfaceQT4/qtEficas.py

index 9043b0e30fdeb434ede79c3320e29b869bc3e9df..8b1f5c6f9d50465da5550fdd90c19d7dff3c428e 100644 (file)
@@ -62,11 +62,11 @@ class configBase(object):
       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()
@@ -87,11 +87,11 @@ class configBase(object):
       #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:/'
       
 
 
@@ -103,12 +103,11 @@ class configBase(object):
       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
index 555c353eef8cdac5e679e5a5833eb05db84401d5..b16504975e255865cf42414b4c59089328b124cb 100755 (executable)
@@ -672,12 +672,11 @@ class Appli(AppliSsIhm,Ui_Eficas,QMainWindow):
     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)