[PEAK] config.fileNearModule() in peak.ini

Yaroslav Samchuk yarcat at ank-sia.com
Wed Apr 20 08:44:58 EDT 2005


Hi,

In http://www.eby-sarna.com/pipermail/peak/2004-October/001816.html you 
told, that `config.fileNearModule` is depricated and 
`config.packageFile` should be used instead.

Yesterday I tried to execute application, which uses `peak.web` and is 
distributed using py2exe. And noticed, that there were some problems 
zip-importing `peak.web/resource_defaults.ini`. After some examation I 
had found, that peak.ini contains the next lines:
======
[peak.web]
resourceDefaultsIni = config.packageFile('peak.web','resource_defaults.ini')

[peak.running.shortcuts]
version-config =
     commands.Alias(
         targetObj,
         command = [
             'runIni',
             config.fileNearModule('peak.tools.version','version.ini')
         ]
     )
======

Is it OK with these two `config.fileNearModule` calls, or it should be 
changed to `config.packageFile`?

-- 
Best regards,
Yaroslav



More information about the PEAK mailing list