From: Kevin A. <al...@se...> - 2001-11-17 22:40:35
|
In order to make spec.py and pythoncard.config.py real modules I changed the res.py and config.py modules to import the files rather than using res.readAndEvalFile() This means that spec.py now has a variable name 'specList' for the list in the module and pythoncard_config.py has a variable 'configuration'. This makes both files valid Python modules that you can actually use directly. In order to support import, I had to change the name of pythoncard.config.py to pythoncard_config.py and the user file is now called pythoncard_user_config.py You can't use dots in the filename of a module you want to import. If you have your own pythoncard.user.config.py file you can simply rename it and add configuration = to the beginning of the file. It is no longer necessary to change the framework itself in order to build with py2exe, but you still have to include the source .py files in the distribution for it to load correctly. A much bigger change to initialization... I'm thinking of changing how samples go through initialization as well, so that the resources no longer have to refer to the base module and do a circular import. The framework started with the idea that there would be a "loader" app and even though I hacked up a way of making samples standalone, they still follow the original loader idea which is probably not needed. In the future what I would like to do is have the app or background specify the resource to use, but without the the resource specifying the class as well. I haven't figured out the order of initialization yet, so this change won't occur right away. ka |