Skip to content

-It works for any python .py file because it uses the built in python module “py_compile” depending on PYTHONHOME -You can have the pycomp folder be located anywhere and it will still work (e.g. the desktop, c drive, doesn’t matter.)

Notifications You must be signed in to change notification settings

cfoxy17/CompileAnyVersionPython

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Compile Any Version Python

-It works for any python .py file because it uses the built in python module “py_compile” depending on PYTHONHOME

-You can have the pycomp folder be located anywhere and it will still work (e.g. the desktop, c drive, doesn’t matter.)


  1. Unzip pycomp.zip and put the resulting "pycomp" folder anywhere on your computer.
  2. (Optional, but really nice) add location of pycomp folder to beginning of PATH system variable (e.g. C:\pycomp; )
  3. Call pycomp.bat using any of the 5 ways below

pycomp.bat can be called in any of the following 5 ways:

  1. put your .py files in the Input folder & double click pycomp.bat

  2. call pycomp.bat with an input path (e.g. "pycomp.bat C:\users\cjf\desktop")

  3. call pycomp.bat with both an input AND output path (e.g. "pycomp.bat C:\users\cjf\desktop C:\workspace")

  4. call pycomp.bat with a path to just one file, no output path given (e.g. "pycomp.bat C:\users\cjf\desktop\GetDBInfo.py")

  5. call pycomp.bat with a path to just one file, AND give an output path (e.g. "pycomp.bat C:\users\cjf\desktop\GetDBInfo.py C:\workspace")

*If you do not give a specific output path, the output .pyc files will appear in pycomp->Output folder. *If you do not give a specific input path, the scripts that are in the pycomp->Input folder will be compiled.

About

-It works for any python .py file because it uses the built in python module “py_compile” depending on PYTHONHOME -You can have the pycomp folder be located anywhere and it will still work (e.g. the desktop, c drive, doesn’t matter.)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published