Printing read-in contents of file
This commit is contained in:
1 parent
c60bffabb3
commit
ca3d37277d
2 files changed
+15
-2
No files matched your search
+7
-2
@@ -77,22 +77,27 @@ def main(argv):
|
||||
raw_input("Press enter to continue")
|
||||
"""
|
||||
|
||||
"""
|
||||
|
||||
# Read in status from last time app ran
|
||||
#
|
||||
try:
|
||||
with open("off.lights") as f:
|
||||
prev_status = f.readlines()
|
||||
f.close()
|
||||
|
||||
except:
|
||||
print "Error reading file."
|
||||
|
||||
# Print the read-in contents of file
|
||||
for line in prev_status:
|
||||
print(line)
|
||||
|
||||
"""
|
||||
raw_input("Press Enter")
|
||||
print(prev_status[1])
|
||||
raw_input("Press Enter Again")
|
||||
#if prev_status[1] == bridge:
|
||||
"""
|
||||
"""
|
||||
|
||||
|
||||
try:
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
20160412-145432
|
||||
10.3.0.102
|
||||
Living Room FL2
|
||||
Living Room FL1
|
||||
Ugly FL
|
||||
Living Room Pharmacy
|
||||
Bedroom 1
|
||||
Back Door
|
||||
Reference in new issue
Block a user