zc buildout sys.path is incorrect
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Thin Client Manager NG |
Invalid
|
High
|
René Fleschenberg |
Bug Description
buildout/bin/tcm runs the *system* tcm libs, not the testing tcm libs... as shown below
hex@Fibonacci:
#!/usr/bin/python
import sys
sys.path[0:0] = [
'/usr/
'/usr/
'/usr/
'/home/
'/home/
'/home/
'/home/
'/home/
'/home/
'/home/
]
_interactive = True
if len(sys.argv) > 1:
_options, _args = __import_
_interactive = False
for (_opt, _val) in _options:
if _opt == '-i':
elif _opt == '-c':
exec _val
elif _opt == '-m':
_args = []
if _args:
sys.argv[:] = _args
__file__ = _args[0]
del _options, _args
if _interactive:
del _interactive
__import_
hex@Fibonacci:
>>> import tcm
>>> tcm.__path__
['/usr/
It looks like the testing paths aren't even getting into the buildout.
Would it be possible to add a variable to zc to set a different glade path during testing? This is also a problem.