Message1599
Importing a package via the -c command-line option is not working for me in Jython 2.2b2. It does work from an interactive session and from a script. I am using the version of Jython installed by the official installer on Windows.
Example session in Command Prompt window:
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
C:\Documents and Settings\davhan>mkdir C:\temp2
C:\Documents and Settings\davhan>cd C:\temp2
C:\temp2>mkdir p1
C:\temp2>copy nul p1\__init__.py
1 file(s) copied.
C:\temp2>jython
Jython 2.2b2 on java1.4.2_05
Type "copyright", "credits" or "license" for more information.
>>> import p1
>>> p1.__file__
'C:\\temp2\\p1\\__init__.py'
>>> ^Z
C:\temp2>jython -c "import p1"
Traceback (innermost last):
File "<string>", line 1, in ?
ImportError: no module named p1
C:\temp2>
|
|
Date |
User |
Action |
Args |
2008-02-20 17:17:49 | admin | link | issue1719528 messages |
2008-02-20 17:17:49 | admin | create | |
|