Ticket #434 (new defect)

Opened 2 months ago

Last modified 8 weeks 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.

Attachments

Change History

Changed 8 weeks 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?

Add/Change #434 (Setup-app breaks in Jython due to sys.platform)

Author


E-mail address and user name can be saved in the Preferences.


Change Properties
<Author field>
Action
as new
as The resolution will be set. Next status will be 'closed'
to The owner will change from ianb. Next status will be 'new'
The owner will change from ianb to anonymous. Next status will be 'assigned'
 
Note: See TracTickets for help on using tickets.