During our migration to Windows Azure, we’ve found out that one of our script that does video rotation is a python script. Of course, when you’re on a Windows platform, it’ll be better off for you to run the script as a Windows executable file.
What you need:
1 . Install python and py2exe
2 . Create a simple python script. Name it hello.py
1
|
|
3 . Create a setup.py
file
1 2 3 4 |
|
4 . Open cmd.exe
and go to your working directory.
5 . We need to install the dependencies that are required by our python script. Run python setup.py install
6 . Then, we convert the python script to an exe with python setup.py py2exe
7 . Your hello.exe
will be in the dist directory.
1 2 |
|