From 26cd7b71e177a2712277c08eb71048eef107b1a6 Mon Sep 17 00:00:00 2001 From: Benjamyn Date: Wed, 16 Aug 2017 09:51:32 +1000 Subject: [PATCH] Fixed up some typos and misunderstanding of pythons dir system --- HTTPy.py | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/HTTPy.py b/HTTPy.py index 322f7a0..39eeba3 100755 --- a/HTTPy.py +++ b/HTTPy.py @@ -33,7 +33,7 @@ def openFile(filename): myfile.write('records=A:MX:TXT:NS:SRV:SOA\n') myfile.write('subdomains=www:mail') myfile.close() - return 1 + quit() return myfile def closeFile(fileObj): @@ -53,12 +53,6 @@ def splitLines(confline): retval.append(tmpLines[1].split(':')) return retval -testFile = openFile('.httpy') -test = testFile.read() -closeFile(testFile) -rec2check, sub2check = splitLines(test) - - def printHelp(): print bcolors.BLUE + "========================================================" print "= help - This screen =" @@ -219,7 +213,7 @@ def getInput(): running = 0 #Main Loop -testFile = openFile('~/.httpy') +testFile = openFile(os.path.expanduser('~/.httpy')) test = testFile.read() closeFile(testFile) rec2check, sub2check = splitLines(test)