Merge pull request #34 from qutorial/myhosts

Update to include preamble handling
This commit is contained in:
Steven Black committed 2015-10-30 11:05:59 -04:00
commit 90ad37d6fc
3 files changed
+7

No files matched your search

+1
View File
@@ -0,0 +1 @@
myhosts
View File
Whitespace-only changes.
+6
View File
@@ -277,6 +277,12 @@ def writeOpeningHeader(finalFile):
writeData(finalFile, '\n')
writeData(finalFile, '127.0.0.1 localhost\n')
writeData(finalFile, '\n')
preamble = os.path.join(BASEDIR_PATH, "myhosts");
if os.path.isfile(preamble):
with open(preamble, "r") as f:
writeData(finalFile, f.read());
finalFile.write(fileContents)
def updateReadme(numberOfRules):