Split conversion code

This commit is contained in:
Ritiek
2017-06-24 21:49:19 +05:30
parent fb3c7e9ec3
commit ae29ff8f87
3 changed files with 97 additions and 77 deletions

View File

@@ -117,6 +117,14 @@ def fix_decoding(query):
query = query.decode('utf-8')
return query
def filter_path(path):
os.chdir(sys.path[0])
if not os.path.exists(path):
os.makedirs(path)
for temp in os.listdir(path):
if temp.endswith('.temp'):
os.remove(path + '/' + temp)
def grace_quit():
print('')
print('')