Changeset 4394 for palm/trunk


Ignore:
Timestamp:
Feb 4, 2020 9:40:38 PM (5 years ago)
Author:
maronga
Message:

Bugfix: harmonized config file naming in palmrungui

File:
1 edited

Legend:

Unmodified
Added
Removed
  • palm/trunk/SCRIPTS/palmrungui

    r4393 r4394  
    2525# -----------------
    2626# $Id$
     27# Bugfix: harmonized naming convention of configuration files
     28#
     29# 4393 2020-02-04 21:24:48Z maronga
    2730# Removed PALM_BIN dependency and os calls
    2831#
     
    121124       
    122125       
    123         filename = "%s/.palmrun.gui.default" % (palm_dir) 
     126        filename = "%s/.palmrungui.default" % (palm_dir) 
    124127        if os.path.exists(filename):
    125128            pass
     
    188191        # Jobs has been submitted or aborted. Continuing...
    189192        # Save the palmrun command to history file
    190         filename = "%s/.palm.history" % (palm_dir)
     193        filename = "%s/.palmrungui.history" % (palm_dir)
    191194        tmstamp = strftime("%Y/%m/%d %H:%M")
    192195   
     
    209212    ######################################
    210213    def recent_jobs(self, number):
    211         fileDir = "%s/.palm.history" % (palm_dir)
     214        fileDir = "%s/.palmrungui.history" % (palm_dir)
    212215        if os.path.exists(fileDir):
    213216            pass
     
    307310        jobname = filename[:len(filename) - 19];
    308311   
    309         fileDir = "%s/.palm.history" % (palm_dir)
     312        fileDir = "%s/.palmrungui.history" % (palm_dir)
    310313        file = open(fileDir,"r")
    311314        history = file.readlines()
     
    580583        elif ( self.sender() == self.group_advanced.findChild(QtGui.QLineEdit,"line_c")):
    581584            tmptext = self.group_advanced.findChild(QtGui.QLineEdit,"line_c").text()
    582             if ( tmptext == ".palmgui.config"):
     585            if ( tmptext == ".palmrungui.config"):
    583586                tmptext = ""
    584587            self.change_commandline("c",tmptext)
     
    761764            string_to_file = "%s%s" % (string_to_file,user_string)
    762765       
    763         filename ="%s/.palmgui.default" % (palm_dir)
     766        filename ="%s/.palmrungui.default" % (palm_dir)
    764767        tmstamp = strftime("%Y/%m/%d %H:%M")
    765768       
     
    10261029    def open_last(self):
    10271030        # Select filename and open it
    1028         filename = "%s/.palm.history" % (palm_dir)
     1031        filename = "%s/.palmrungui.history" % (palm_dir)
    10291032       
    10301033        if os.path.exists(filename):
Note: See TracChangeset for help on using the changeset viewer.