Ticket #434 (new defect)
Setup-app breaks in Jython due to sys.platform
| Reported by: | passive | Owned by: | ianb |
|---|---|---|---|
| Priority: | normal | Milestone: | 1.3 |
| Component: | deploy | Version: | svn-trunk |
| Severity: | major | Keywords: | jython |
| Cc: |
Description
Not sure if this should be handled in Paste, but it could be.
Basically, when running setup-app, paste.deploy.loadwsgi._loadconfig is called twice. The first time, the uri/path for the config file is relative, with context supplied, the second time it's absolute, with no context. This is when the problem occurs. This test:
if sys.platform == 'win32':
fails, because in Jython, sys.platform returns java1.6.0_20.
Is there a reason os.path.isabs(path) isn't used here? I don't really agree with Jython's implementation of sys.platform, but I doubt that will change.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.
