Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAriel Calzada <ariel@activitycentral.com>2012-01-25 01:14:42 (GMT)
committer Ariel Calzada <ariel@activitycentral.com>2012-01-25 01:14:42 (GMT)
commit572c5a80ca04ca90098d5635256422f34c555200 (patch)
treefb30fec8995435bd866ae284f09b2c1040b94085
parent28fc6a1aa1d0202c58b71efcaf692cbc601dc6f6 (diff)
Dynamic IP choose
-rw-r--r--viewer.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/viewer.py b/viewer.py
index 2bc89eb..824fd35 100644
--- a/viewer.py
+++ b/viewer.py
@@ -42,6 +42,9 @@ class ViewerProcess():
if not self.getStatus():
for interface, ip in networkDict.iteritems():
if interface != "lo" and ip != "":
+ f = open("/tmp/ariel.txt", "a")
+ f.write(interface + "|" + ip)
+ f.close()
self._args = [ ip ]
self._utilities.startProgram(self._programName,self._args)
break