35 | | ''Note that the `SetEnv` directive requires the `mod_env` module to be installed and enable.'' |
| 35 | ''Note that the `SetEnv` directive requires the `mod_env` module to be installed and enable. If not, you could set TRAC_ENV in trac.cgi. Just add the following code between "try:" and "from trac.web ...":'' |
| 36 | |
| 37 | {{{ |
| 38 | import os |
| 39 | os.environ['TRAC_ENV'] = "/path/to/projectenv" |
| 40 | }}} |
| 41 | |
| 42 | '' Or for TRAC_ENV_PARENT_DIR: '' |
| 43 | |
| 44 | {{{ |
| 45 | import os |
| 46 | os.environ['TRAC_ENV_PARENT_DIR'] = "/path/to/project/parent/dir" |
| 47 | }}} |