dabodemo Commit Revision 439 Date: 2006-10-31 12:05:26 -0800 (Tue, 31 Oct 2006) Author: ed
Changed: U trunk/DaboDemo/Modules.py D trunk/DaboDemo/modified/
Log: Removed the 'modified' directory, and replaced its usage with a directory in the user's home directory, much as we do with preferences. This way they should always be able to write and delete the modified files.
Diff: Modified: trunk/DaboDemo/Modules.py =================================================================== --- trunk/DaboDemo/Modules.py 2006-10-31 16:28:17 UTC (rev 438) +++ trunk/DaboDemo/Modules.py 2006-10-31 20:05:26 UTC (rev 439) @@ -21,6 +21,7 @@ import types import dabo dabo.ui.loadUI("wx") +import dabo.lib.utils as utils import dabo.dEvents as dEvents from dabo.dLocalize import _ @@ -45,7 +46,10 @@ modOrig = 0 modMod = 1 origDir = "samples" - modDir = "modified" + modDir = os.path.join(utils.getUserDaboDirectory(), + "DaboDemo", "modified") + if not os.path.exists(modDir): + os.makedirs(modDir) def __init__(self, name):
©2006 Ed Leafe |