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
#!/usr/bin/env python | |
import os, sys, termios, tty | |
def getch(): | |
fd = sys.stdin.fileno() | |
old = termios.tcgetattr(fd) | |
try: | |
tty.setraw(fd) | |
return sys.stdin.read(33) | |
finally: |
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
#! /usr/bin/env python | |
import os, sys | |
if __name__=="__main__": | |
try: os.chdir(os.path.dirname(__file__)) | |
except OSError: pass | |
filepath="./"+sys.argv[1] | |
with open (filepath,"r") as listfile: | |
for line in listfile: | |
for filename in os.listdir("./"): |
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
#! /usr/bin/env python | |
import sys | |
if __name__=="__main__": | |
try: | |
path="./"+sys.argv[1] | |
except: | |
print "Use: python comas.py [filename]" | |
print "Wrong syntax or file not found" |
NewerOlder