Skip to content

Development

Joachim Metz edited this page Sep 28, 2014 · 3 revisions

Python development

Get version

import pyexe

pyexe.get_version()

Open file

import pyexe

exe_file = pyexe.file()

exe_file.open("cmd.exe")

exe_file.close()

Note that the explicit call to close is not required.

Open file using a file-like object

import pyexe

file_object = open("cmd.exe", "rb")

exe_file = pyexe.file()

exe_file.open_file_object(file_object)

exe_file.close()

Note that the explicit call to close is not required.

Also see

import pyexe

help(pyexe)
help(pyexe.file)
Clone this wiki locally