Skip to content

Instantly share code, notes, and snippets.

@ihodes
Created April 5, 2013 02:12
Show Gist options
  • Save ihodes/5316078 to your computer and use it in GitHub Desktop.
Save ihodes/5316078 to your computer and use it in GitHub Desktop.
Handy hacky script to help me reorganize a flask project
import envoy, time, os
def main():
old = ""
time.sleep(1)
while True:
new_run = envoy.run("tree -I \"init|*.pyc|*html\" --noreport -L 3 -F")
new = new_run.std_out
if old != new:
envoy.run('clear')
old = new
print old
if __name__ == '__main__':
main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment