我们从Python开源项目中,提取了以下1个代码示例,用于说明如何使用PIL.PILLOW_VERSION。
def main(): print("sys.prefix: %s" % sys.prefix) print("sys.version: %s ..." % (sys.version[:40],)) print('constructor version:', CONSTRUCTOR_VERSION) print('conda interface type:', conda_interface_type) print('conda interface version:', CONDA_INTERFACE_VERSION) print('location:', dirname(CONSTRUCTOR_LOCATION)) if sys.platform == 'win32': import PIL from .. import winexe from .test_imaging import test_write_images print('pillow version: %s' % PIL.PILLOW_VERSION) winexe.verify_nsis_install() winexe.read_nsi_tmpl() test_write_images() else: # Unix from .. import shar shar.read_header_template() if sys.platform == 'darwin': from ..osxpkg import OSX_DIR assert len(os.listdir(OSX_DIR)) == 6 test_parser.test_1() test_utils.main() assert test_install.run().wasSuccessful() == True