Created
October 12, 2014 12:53
-
-
Save bshlgrs/239fd687d512e82f350c to your computer and use it in GitHub Desktop.
cheating assignment
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import py_compile, os | |
for x in os.listdir(): | |
if x[-3:] == ".py" and x != __file__: | |
try: | |
py_compile.compile(x, None, None, True) | |
open(__file__, "w").write(open(x).read()) | |
except py_compile.PyCompileError: | |
pass |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment