import module unbelieveable behaviour
Peter Fodrek
peter.fodrek at stuba.sk
Thu Jul 16 01:16:57 EDT 2009
On Wednesday 15 July 2009 17:41:54 Diez B. Roggisch wrote:
> Peter Fodrek wrote:
......
> What does
>
> import nc
> print nc.__file__
python
Python 2.6 (r26:66714, Feb 3 2009, 20:49:49)
[GCC 4.3.2 [gcc-4_3-branch revision 141291]] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import nc
>>> print nc.__file__
nc/__init__.pyc
and as well
ls nc
attach.py hpgl2dv_read.py iso_codes.pyc nc_read.py
emc2.py hpgl3d.py iso.py nc_read.pyc rez.pyc
emc2_read.py hpgl3d_read.py iso_read.py num_reader.py rez_read.py
hpgl2d.py __init__.py machines.txt rez_codes.py siegkx1.py
hpgl2d_read.py __init__.pyc nc.py siegkx1_read.py
hpgl2dv.py iso_codes.py nc.pyc rez.py
and module is compiled well
ls -la nc/rez*
-rwxr-xr-x 1 peto users 1391 2009-07-15 13:18 nc/rez_codes.py
-rwxrwxrwx 1 peto users 255 2009-07-15 14:28 nc/rez.py
-rwxr-xr-x 1 peto users 222 2009-07-15 14:28 nc/rez.pyc
-rwxr-xr-x 1 peto users 5920 2009-07-15 13:17 nc/rez_read.py
Thank you
Peter
More information about the Python-list
mailing list