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 =
> ...
>Jim Roepke suggested that if an "ZOPE_CONFIG" envvar was set with the
>config file path, that "import Zope;" could be made to "just

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...


Zope-Dev maillist  -  [EMAIL PROTECTED]
**  No cross posts or HTML encoding!  **
(Related lists - )

Reply via email to