Created
November 26, 2017 17:36
-
-
Save jkotra/2b5cb006f40e7ebc7415ffdb1ff0a0e9 to your computer and use it in GitHub Desktop.
javac loop
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 os | |
import glob | |
import subprocess | |
files = [] | |
def javac(dir): | |
subprocess.call("javac {0}".format(dir),shell=True) | |
os.remove(dir) | |
for f in glob.iglob("/home/z/Documents/apk/**/*.java", recursive=True): | |
print(f) | |
files.append(f) | |
for dir in files: | |
javac(dir) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment