Issue2306

classification
Title: Jython standalone does not add folders to classpath
Type: behaviour Severity: normal
Components: Library Versions: Jython 2.7
Milestone:
process
Status: closed Resolution: invalid
Dependencies: Superseder:
Assigned To: Nosy List: jzawila, zyasoft
Priority: Keywords:

Created on 2015-03-31.08:07:33 by jzawila, last changed 2015-03-31.15:08:42 by zyasoft.

Messages
msg9741 (view) Author: Jaroslaw Zawila (jzawila) Date: 2015-03-31.08:07:32
I am upgrade from jython standalone 2.5.4 to 2.7 release candidate. I could see unexpected behavior with modjy servlet. 

I have application.py file which contains: 
 
from django.core.handlers import wsgi
 import os

 def handler(environ, start_response):
    os.putenv("DJANGO_SETTINGS_MODULE", "settings")
    h = wsgi.WSGIHandler()
    return h(environ, start_response

and the folder structure is as below: 
-> webapp
  -> application.py
  -> WEB-INF
     -> lib-python
        -> security
           -> settings.py

With the previous version of jython-standalone it works fine. After update it stop working with the error "security module cannot be find".

I have tried play with that in different ways but it seems like jython does not add the folder to class path any more. 

I am not sure if I am doing something wrong or there is some kind of bug ????
msg9742 (view) Author: Jaroslaw Zawila (jzawila) Date: 2015-03-31.08:08:32
Sorry there is mistake in the code below it should be security.settings instead of settings
msg9743 (view) Author: Jaroslaw Zawila (jzawila) Date: 2015-03-31.08:20:27
Please close it or ignore as it just me making mistake
msg9744 (view) Author: Jim Baker (zyasoft) Date: 2015-03-31.15:08:42
It's not a problem, I will close it out.
History
Date User Action Args
2015-03-31 15:08:42zyasoftsetstatus: open -> closed
resolution: invalid
messages: + msg9744
nosy: + zyasoft
2015-03-31 08:20:27jzawilasetmessages: + msg9743
2015-03-31 08:08:32jzawilasetmessages: + msg9742
2015-03-31 08:07:33jzawilacreate