Chris McDonough wrote at 2003-12-21 18:16 -0500:
> ...
>Will need to do this under 2.7b4+:
>
> import Zope
> Zope.configure('/path/to/configfile')
> app = Zope.app()
> ...
>Jim Roepke suggested that if an "ZOPE_CONFIG" envvar was set with the
>config file path, that "import Zope; Zope.app()" could be made to "just
>work",

A very good suggestion!

>but I'm not sure this is any better than requiring that
>developers change their scripts.

For developpers, it is much better:

  Add an environment variable at one (or a few) central
  place versus change lots of scripts.

> Guessing at the config file location
>is also fraught with problems, and I'd be hesitant to do it.

The suggestion was to use the value of "ZOPE_CONFIG" as
config file path. Thus, you do not need to guess...

-- 
Dieter

_______________________________________________
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )

Reply via email to