FAQ | This is a LIVE service | Changelog

Skip to content
Snippets Groups Projects
Commit baaf95dc authored by Silas S. Brown's avatar Silas S. Brown
Browse files

Gradint update

git-svn-id: http://svn.code.sf.net/p/e-guidedog/code/ssb22/gradint@955 29193198-4895-4776-b068-10539e920549
parent 1cc34ed7
No related branches found
No related tags found
No related merge requests found
......@@ -214,10 +214,12 @@ def exc_info(inGradint=True):
def read(fname): return open(fname,"rb").read()
def readSettings(f):
try: fdat = unicode(u8strip(read(f)).replace("\r","\n"),"utf-8")
except: return show_warning("Warning: Could not load "+f+" (problem reading or decoding utf-8)")
try: fdat = u8strip(read(f)).replace("\r","\n")
except: return show_warning("Warning: Could not load "+f)
try: fdat = unicode(fdat,"utf-8")
except: return show_warning("Problem decoding utf-8 in "+f)
try: exec(fdat) in globals()
except: show_warning("Warning: Could not load "+f+" ("+exc_info(False)+")")
except: show_warning("Error in "+f+" ("+exc_info(False)+")")
dir1 = list2set(dir()+["dir1","f","last_u8strip_found_BOM"])
for f in configFiles: readSettings(f)
for d in dir():
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment