dabodemo Commit Revision 441 Date: 2006-10-31 17:59:08 -0800 (Tue, 31 Oct 2006) Author: ed
Changed: U trunk/DaboDemo/Modules.py
Log: Fixed the problem with modified code under Windows. Python needs line endings to be "\n", no matter what, so this change fixes that.
Diff: Modified: trunk/DaboDemo/Modules.py =================================================================== --- trunk/DaboDemo/Modules.py 2006-10-31 21:03:04 UTC (rev 440) +++ trunk/DaboDemo/Modules.py 2006-11-01 01:59:08 UTC (rev 441) @@ -141,6 +141,8 @@ def saveMod(self, code): + if os.linesep != "\n": + code = code.replace(os.linesep, "\n") fname = self.modules[self.modMod][2] if not fname: base = os.path.split(self.modules[self.modOrig][2])[-1]
©2006 Ed Leafe |