Jython: Is there any difference between adding to sys.path vs passing -D?
        Posted  
        
            by 
                trinth
            
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by trinth
        
        
        
        Published on 2012-11-18T04:56:16Z
        Indexed on 
            2012/11/18
            4:59 UTC
        
        
        Read the original article
        Hit count: 234
        
I have a python application that is trying to load some Java libraries (specifically Axis2 web services). When I add the necessary jars in Eclipse via PyDev Project Source Folders, everything seems to work fine. However, I want to be able to do this at run time by adding to sys.path, but then my application doesn't seem to work.
In both cases I can load the jars just fine, but something must be different for there to be different results. My question is, is there a difference between adding jars via the sys.path at run time with sys.path.append() versus passing -D to the jython interpreter?
© Stack Overflow or respective owner