How can I specifiy the .spec file in PyInstaller

compilation, pyinstaller, python

Solution

Try something like this:

C:\Python27\python.exe C:\Python27\Lib\site-packages\PyInstaller\main.py --onefile  --noconsole main.spec

Problem

How can I specifiy the .spec file while compiling my .py file with PyInstaller using the --onefile and --noconsole options?

Original source