Skip to content

Development

Joachim Metz edited this page Feb 26, 2015 · 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()

The explicit call to exe_file.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()

The explicit call to exe_file.close() is not required.

Also see

import pyexe

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