Ticket #434 (new defect)

Opened 19 months ago

Last modified 19 months ago

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.

Change History

Changed 19 months ago by passive

Dang, I noticed there was just a new paste release and this didn't get in. What can I do to make that happen?

Note: See TracTickets for help on using tickets.