diff --git a/twander.py b/twander.py index b3aeccc..f14f844 100755 --- a/twander.py +++ b/twander.py @@ -4,7 +4,7 @@ PROGNAME = "twander" -RCSID = "$Id: twander.py,v 1.71 2002/11/21 22:59:16 tundra Exp $" +RCSID = "$Id: twander.py,v 1.72 2002/11/22 20:53:40 tundra Exp $" VERSION = RCSID.split()[2] @@ -168,7 +168,6 @@ eDUPKEY = "Duplicate Key In Configuration File Found In Entry: \'%s\'" eERROR = "ERROR" eINITDIRBAD = "Cannot Open Starting Directory : %s - Check Permissions - ABORTING!." -eNOCONF = "Cannot Find Configuration File: %s" eNOENV = "Configuration File References Undefined Environment Variable: %s" eOPEN = "Cannot Open File: %s" eTOOMANY = "You Can Only Specify One Starting Directory." @@ -181,6 +180,7 @@ # Warnings wCMDKEY = "Configuration File Entry For: \'%s\' Has No Command Key Defined." +wNOCONF = "Cannot Find Configuration File: %s\n\nRunning With No Commands Defined!" wSYMBACK = " Symbolic Link %s Points Back To Own Directory" wWARN = "WARNING" @@ -260,8 +260,9 @@ try: cf = open(CONF) except: - ErrMsg(eOPEN % CONF) - sys.exit(1) + WrnMsg(wNOCONF % CONF) + UI.rcfile = {} + return # Cleanout any old UI.rcfile = {} @@ -971,11 +972,6 @@ if opt == "-y": HEIGHT = val -# This program requires a config file - -if not os.path.exists(CONF): - ErrMsg(eNOCONF % CONF) - sys.exit(1) # Create an instance of the UI UIroot = Tk() @@ -1009,7 +1005,7 @@ # Get starting directory into canonical form STARTDIR = os.path.abspath(STARTDIR) -# Parse the and store configuration +# Parse the and store configuration file, if any ParseConfFile() # Initialize directory stack