Message1012

Author thehaas
Recipients
Date 2005-07-27.23:38:15
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
I have a Python library that I call that is in the same directory as my application.  It has a __init__.py that doesn't seem to be called:

$ dir WorkPoint
#wpWindows.py#  __init__.pyc    utils.pyc   wpWindows.py
TAGS            semantic.cache  wpJava.py   wpWindows.pyc
__init__.py     utils.py        wpJava.pyc

$ ./PerformWork.bat  cmd
ECHO is off.
Jython 2.2a1 on java1.4.2_03 (JIT: null)
Type "copyright", "credits" or "license" for more information.
>>> import WorkPoint
>>> s =WorkPoint.Session()
Traceback (innermost last):
  File "<console>", line 1, in ?
AttributeError: java package 'WorkPoint' has no attribute 'Session'
>>> dir(WorkPoint)
['__name__']


It looks like this in 2.1:
$ ./PerformWork.bat  cmd
ECHO is off.
Jython 2.1 on java1.4.2_03 (JIT: null)
Type "copyright", "credits" or "license" for more information.
>>> import WorkPoint
>>> s = WorkPoint.Session()
>>> dir(WorkPoint)
['JAVA', 'Session', 'WPexception', '__doc__', '__file__', '__name__', '__path__'
, 'isJava', 'sys', 'wpJava', 'wpWrapper']
History
Date User Action Args
2008-02-20 17:17:24adminlinkissue1246413 messages
2008-02-20 17:17:24admincreate