Browse Source

icondir now defaults to /icinz in the script's dir

Wazakindjes 4 years ago
parent
commit
33a21e5ada
1 changed files with 6 additions and 2 deletions
  1. 6 2
      hurr.py

+ 6 - 2
hurr.py

@@ -179,6 +179,7 @@ def runUpload(newfiles, basepath):
 
 if __name__ == "__main__":
 	muhdir = os.path.dirname(os.path.realpath(__file__))
+	MUHCONF['icondir'] = "%s/icinz" % muhdir
 	Config = ConfigParser.ConfigParser()
 	gottem = Config.read(muhdir + "/hurr.conf")
 	print "Parsing config: %s/hurr.conf\r\n" % muhdir
@@ -200,11 +201,10 @@ if __name__ == "__main__":
 							cval = MUHCONF[cval]
 
 						if cval[0] == '~':
-							print "Expanding special path characters in %s" % cval
+							print "[%s] Expanding special path characters in %s" % (copt, cval)
 							cval = os.path.expanduser(cval)
 
 					if copt in MUHCONF.keys() and not cval in [None, -1, '']:
-						print "** %s = %s" % (copt, cval)
 						MUHCONF[copt] = cval
 			except:
 				print "Invalid value '%s' for %s" % (cval, copt)
@@ -214,6 +214,10 @@ if __name__ == "__main__":
 		print "Incomplete config file lol"
 		sys.exit(1)
 
+	for copt in MUHCONF.keys():
+		cval = MUHCONF[copt]
+		print "** %s = %s" % (copt, cval)
+
 	print "\r\nGetting current directory contents"
 	OLDFILES = getscrots()
 	OLDFILES_ALT = getscrots_alt()