Edgewall Software

Changes between Version 58 and Version 59 of TracModWSGI


Ignore:
Timestamp:
Mar 14, 2014, 12:50:07 PM (10 years ago)
Author:
Jun Omae
Comment:

Should not use Python-Eggs directory under the user session if run under a Windows service

Legend:

Unmodified
Added
Removed
Modified
  • TracModWSGI

    v58 v59  
    2424
    2525The `TRAC_ENV` variable should naturally be the directory for your Trac environment (if you have several Trac environments in a directory, you can also use `TRAC_ENV_PARENT_DIR` instead), while the `PYTHON_EGG_CACHE` should be a directory where Python can temporarily extract Python eggs.
    26 On Windows, the Python Egg cache can be found in `%AppData%\Roaming`, for example:
    27 {{{#!python
    28 os.environ['PYTHON_EGG_CACHE'] = r'C:\Users\Administrator\AppData\Roaming\Python-Eggs\trac-1.0-py2.7-win32.egg-tmp\trac'
     26
     27On Windows:
     28 - If run under the user's session, the Python Egg cache can be found in `%AppData%\Roaming`, for example:
     29{{{#!python
     30os.environ['PYTHON_EGG_CACHE'] = r'C:\Users\Administrator\AppData\Roaming\Python-Eggs'
     31}}}
     32 - If run under a Window service, you should create a directory for Python Egg cache.
     33{{{#!python
     34os.environ['PYTHON_EGG_CACHE'] = r'C:\Trac-Python-Eggs'
    2935}}}
    3036