Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

clean: remove *.pyc from root of the repo dir

  • Loading branch information...
commit 2bee8d041daa90e38070029edccbd4f9a26da1d2 1 parent 3d1600c
@jtriley authored
Showing with 4 additions and 2 deletions.
  1. +4 −2 clean.py
View
6 clean.py
@@ -1,6 +1,5 @@
#!/usr/bin/env python
import os
-import sys
import glob
@@ -15,9 +14,12 @@ def find_cruft(path, extensions=['.pyc', '.pyo']):
def main():
- sc_src = os.path.join(os.path.dirname(sys.argv[0]), 'starcluster')
+ repo_root = os.path.dirname(__file__)
+ sc_src = os.path.join(repo_root, 'starcluster')
for i in find_cruft(sc_src):
os.unlink(i)
+ for i in glob.glob('*.pyc'):
+ os.unlink(i)
if __name__ == '__main__':
main()
Please sign in to comment.
Something went wrong with that request. Please try again.