#Init has to be imported first because it has code to workaround the python bug where relative imports don't work if the module is imported as a main module.\r
import __init__\r
\r
-import os, traceback, math, re, zlib, base64, time, sys, platform \r
+import os, traceback, math, re, zlib, base64, time, sys, platform, glob\r
if sys.version_info[0] < 3:\r
import ConfigParser\r
else:\r
clearTempOverride('extruder')\r
else:\r
alterationContents = ''\r
- return unicode(prefix + re.sub("(.)\{([^\}]*)\}", replaceTagMatch, alterationContents).rstrip() + '\n' + postfix).encode('utf-8')\r
-\r
+ return unicode(prefix + re.sub("(.)\{([^\}]*)\}", replaceTagMatch, alterationContents).rstrip() + '\n' + postfix).strip().encode('utf-8')\r