Bitbucket is a code hosting site with unlimited public and private repositories. We're also free for small teams!

The exewrapper mini-project builds a xx.exe file for Python script xx on
Windows, which can be used instead of a xx.bat or xx.cmd file to call the 'xx'
python script.

The exe embeds the Python interpreter by dynamically linking to it. A separate
exe must be built for each major Python version, that is, a specific exe is
bound to python27.dll, or python26.dll etc.

If there is no xx file found in the same directory as xx.exe, then xx.exe tries
to start instead. This can be useful for cases where hiding away the
original xx script is needed.

The python script name called is inferred from the name of the exe: foo.exe
searches for python script foo and takes if foo doesn't exist in
the same directory as foo.exe.

To build exewrapper, Python must be installed. The makefile (Makefile.nmake)
only depends on the Windows SDK compiler toolchain [1], so no Visual Studio
is needed for building. This allows to build x64 and x86 exewrappers.

For building the exe, either start a shell using build32.cmd (to build the
x86 exe's), or build64.cmd (to build the x64 exe's) and then in either of
them execute build.cmd.

build.cmd at the moment assumes Python installs in:


so it currently supports building exewrapper's for these.


Recent activity

Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.