compiler construction - Recompile all Python files in directory -


i have python directory number of .py files. compiled them .pyc files using python -m compileall. have changed of source files , recompile, writing on old .pyc files.

is there quick way command line without having manually delete existing .pyc files?

when source code has changed, new .pyc files automatically created when run program again. therefore wouldn't worry compiling, focus attention on code itself.. :)


Comments