[Gelistirici] [merge] file
S.Çağlar Onur
caglar at pardus.org.tr
29 Mar 2007 Per 02:45:39 EEST
Enable python bindings, pisi and other tools now can use that instead of
popen file binary!
[caglar at zangetsu][~]> ipython
Python 2.4.4 (#1, Oct 25 2006, 16:27:12)
Type "copyright", "credits" or "license" for more information.
IPython 0.7.2 -- An enhanced Interactive Python.
? -> Introduction to IPython's features.
%magic -> Information about IPython's 'magic' % functions.
help -> Python's own help system.
object? -> Details about 'object'. ?object also works, ?? prints more.
In [1]: import magic
In [2]: ms = magic.open(magic.MAGIC_NONE)
In [3]: ms.load()
Out[3]: 0
In [4]: print ms.file("/usr/lib/libiw.so.29")
ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), stripped
--
S.Çağlar Onur <caglar at pardus.org.tr>
http://cekirdek.pardus.org.tr/~caglar/
Linux is like living in a teepee. No Windows, no Gates and an Apache in house!
-------------- sonraki bölüm --------------
A non-text attachment was scrubbed...
Name: kullanılamıyor
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
URL: <http://liste.pardus.org.tr/gelistirici/attachments/20070329/3c0d2f75/attachment-0002.pgp>
Gelistirici mesaj listesiyle ilgili
daha fazla bilgi