Submit
Path:
~
/
/
proc
/
thread-self
/
root
/
opt
/
alt
/
python35
/
lib64
/
python3.5
/
site-packages
/
numpy
/
distutils
/
__pycache__
/
File Content:
lib2def.cpython-35.pyc
W��f� � @ s� d d l m Z m Z m Z d d l Z d d l Z d d l Z d d l Z d Z d Z d e e j d d � � Z d Z d e Z e j d e e j � Z e j d e e j � Z d d � Z d d d e g d d � Z d d � Z e j d d � Z e d k r�e � \ Z Z e d k r0e j Z n e e d � Z e e � e e � g Z e e � Z e e � \ Z Z e e e e e � d S)� )�division�absolute_import�print_functionNa� This module generates a DEF file from the symbols in an MSVC-compiled DLL import library. It correctly discriminates between data and functions. The data is collected from the output of the program nm(1). Usage: python lib2def.py [libname.lib] [output.def] or python lib2def.py [libname.lib] > output.def libname.lib defaults to python<py_ver>.lib and output.def defaults to stdout Author: Robert Kern <kernr@mail.ncifcrf.gov> Last Update: April 30, 1999 z0.1az%d%d� znm -CszrLIBRARY python%s.dll ;CODE PRELOAD MOVEABLE DISCARDABLE ;DATA PRELOAD SINGLE EXPORTS z^(.*) in python%s\.dllz^_imp__(.*) in python%s\.dllc C sq t t j � d k r� t j d d d � d k rk t j d d d � d k rk t j d d � \ } } qgt j d d d � d k r� t j d d d � d k r� t j d d � \ } } qgt d � t d � n� t t j � d k rWt j d d d � d k r$t j d } d t } qgt j d d d � d k rgd } t j d } n d t } d } | | f S)zBParses the command-line arguments. libfile, deffile = parse_cmd()� � � Nz.libr z.defz4I'm assuming that your first argument is the libraryzand the second is the DEF file.zpython%s.lib���r r r r r )�len�sys�argv�print�py_ver)�libfile�deffile� r �/lib2def.py� parse_cmd) s"