Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/activity.py
diff options
context:
space:
mode:
authorBenjamin Schwartz <bens@alum.mit.edu>2007-12-22 22:46:36 (GMT)
committer Benjamin Schwartz <bens@alum.mit.edu>2007-12-22 22:46:36 (GMT)
commit4e40f6647cb679cd7e4371bb2f35a694cd2b5262 (patch)
treeb80326b9588c6bf2c96166af42c39d13037bb0ee /activity.py
parentb0b5669811029c90b0dc1f33e5050fd1b5ad03da (diff)
Move socket from /tmp to /intance
Diffstat (limited to 'activity.py')
-rw-r--r--activity.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/activity.py b/activity.py
index efccd11..502ed2d 100644
--- a/activity.py
+++ b/activity.py
@@ -45,6 +45,7 @@ import thread
import socket
import base64
import os
+import os.path
import dbus
#import socket_test as arange
@@ -224,7 +225,10 @@ class AcousticMeasureActivity(Activity):
self._logger.debug('This is my activity: making a tube...')
- f = os.tempnam()
+ #f = os.tempnam()
+ # The filename cannot be in $TMP, because this directory is not
+ # visible to Telepathy.
+ f = sugar.activity.activity.get_activity_root() + '/instance/my_socket'
self.server_socket = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)
self.server_socket.bind(f)