From 4f8dc178cffaf3da10d43a29a9bceca5db1df2df Mon Sep 17 00:00:00 2001 From: clamsawd Date: Sun, 1 Nov 2015 15:47:02 +0100 Subject: [PATCH] Bump up version number to 1.1 --- ip2e-config.py | 2 +- ip2e-daemon.py | 16 ++++++---------- ip2e-log.py | 2 +- 3 files changed, 8 insertions(+), 12 deletions(-) diff --git a/ip2e-config.py b/ip2e-config.py index eb7ebf4..b1b7e53 100755 --- a/ip2e-config.py +++ b/ip2e-config.py @@ -9,7 +9,7 @@ # | # Compatible with Python 3.x | # -------------------------------------------------------------- -version="1.0" +version="1.1" #Import python-modules import os diff --git a/ip2e-daemon.py b/ip2e-daemon.py index 8b302a8..7416465 100755 --- a/ip2e-daemon.py +++ b/ip2e-daemon.py @@ -9,7 +9,7 @@ # | # Compatible with Python 3.x | # -------------------------------------------------------------- -version="1.0" +version="1.1" #Import python-modules import urllib @@ -201,15 +201,11 @@ while PublicIP <= 2: editlog.write("[ip2e-daemon] ["+CurrentTime+"] Retrying in 10 seconds...\n") time.sleep(10) os.remove("current-ip.py") - def createNewip2eIPcf(): - ip2eIPcf=open('current-ip.py','w') - ip2eIPcf.close() - def writeNewip2eIPcf(): - ip2eIPcf=open('current-ip.py','a') - ip2eIPcf.write('CurrentIP="'+NewIP+'"\n') - ip2eIPcf.close() - createNewip2eIPcf() - writeNewip2eIPcf() + ip2eIPcf=open('current-ip.py','w') + ip2eIPcf.close() + ip2eIPcf=open('current-ip.py','a') + ip2eIPcf.write('CurrentIP="'+NewIP+'"\n') + ip2eIPcf.close() CurrentTime = time.strftime("%H:%M") GreenColor() print ("[ip2e-daemon] ["+CurrentTime+"] Next update in 10 minutes...") diff --git a/ip2e-log.py b/ip2e-log.py index 0636323..eb9e2aa 100755 --- a/ip2e-log.py +++ b/ip2e-log.py @@ -9,7 +9,7 @@ # | # Compatible with Python 3.x | # -------------------------------------------------------------- -version="1.0" +version="1.1" #Import python-modules import os