Revision: 260
http://fclient.svn.sourceforge.net/fclient/?rev=260&view=rev
Author: jurner
Date: 2008-02-26 02:08:38 -0800 (Tue, 26 Feb 2008)
Log Message:
-----------
adapt to renames
Modified Paths:
--------------
trunk/sandbox/fcp2/boards/frost.py
Modified: trunk/sandbox/fcp2/boards/frost.py
===================================================================
--- trunk/sandbox/fcp2/boards/frost.py 2008-02-26 10:07:03 UTC (rev 259)
+++ trunk/sandbox/fcp2/boards/frost.py 2008-02-26 10:08:38 UTC (rev 260)
@@ -2,15 +2,15 @@
import os, sys, time
#--> rel import hack
-class SysPathHack(object):
+class _RelImportHack(object):
def __init__(self, n):
fpath = os.path.abspath(__file__)
for i in xrange(n): fpath = os.path.dirname(fpath)
sys.path.insert(0, fpath)
def __del__(self): sys.path.pop(0)
-hack = SysPathHack(2)
+hack = _RelImportHack(3)
-from fcp2_0_client import FcpClient
+from fcp2.client import Client
del hack
@@ -18,7 +18,7 @@
#**********************************************************************
#
#**********************************************************************
-#c = FcpClient()
+#c = Client()
#c.connect()
@@ -48,7 +48,7 @@
def __init__(self):
- self.fcpClient = FcpClient(debugVerbosity=FcpClient.consts.DebugVerbosity.Debug)
+ self.fcpClient = Client(debugVerbosity=Client.consts.DebugVerbosity.Debug)
nodeHello = self.fcpClient.connect()
if nodeHello is None:
return False
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|