Config-File installieren, default auf ~/etc/userconfig.cfg wenn nicht mit -c ueberschrieben
This commit is contained in:
@@ -195,7 +195,7 @@ def processAllFiles(destfiles, dirConfig):
|
||||
# def buildAllFiles
|
||||
|
||||
def main():
|
||||
configfile = ""
|
||||
configfile = os.environ['HOME']+"/etc/userconfig.cfg"
|
||||
global verbose
|
||||
|
||||
try:
|
||||
@@ -222,7 +222,7 @@ def main():
|
||||
return 2
|
||||
# try
|
||||
|
||||
if configfile == "":
|
||||
if not os.path.isfile(configfile):
|
||||
Tools.error( "No config file specified.")
|
||||
return 2
|
||||
# if configfile
|
||||
|
||||
Reference in New Issue
Block a user