how to run python project after remove .py file?
Question: i want to remove my source code .py files to avoid rivals to see my code.

so i use

    
    
    python -c "import compileall; compileall.compile_dir('D:/acc')"
    

to compile all py files to pyc,next step is to remove py files,and run the
project only use pyc, how to do it?


Answer: you can use shutils, which is in the standard lib but please consider that
removing *.py files is not a very string protection as it is very easy to
rebuild the *.py file from a *.pyc.

Using py2exe with a drm packer would be much more secure.

