summaryrefslogtreecommitdiff
path: root/maximus/python/lib
diff options
context:
space:
mode:
authorronciere2007-10-30 12:43:24 +0000
committerronciere2007-10-30 12:43:24 +0000
commitd180f028990a22d9ecd1b33eefef8a333eeb16b5 (patch)
tree10a32089c0ce0535769c52f5b6611fe5e37d4477 /maximus/python/lib
parent22fbbb6f3e1a0f845df1519c637936c97df8afab (diff)
First script add
git-svn-id: svn+ssh://pessac/svn/cesar/trunk@906 017c9cb6-072f-447c-8318-d5b54f68fe89
Diffstat (limited to 'maximus/python/lib')
-rw-r--r--maximus/python/lib/mmeScript.py34
1 files changed, 34 insertions, 0 deletions
diff --git a/maximus/python/lib/mmeScript.py b/maximus/python/lib/mmeScript.py
new file mode 100644
index 0000000000..110de8a18b
--- /dev/null
+++ b/maximus/python/lib/mmeScript.py
@@ -0,0 +1,34 @@
+
+
+import sys
+sys.path.append('./test')
+sys.path.append('../test')
+import startup
+
+
+# MME SCRIPT EXAMPLE
+
+import unittest
+from interface import *
+from maximus import *
+from mmentryMethod import *
+#from mmentryFields import *
+#from fidMethod import *
+#from mmentry import *
+
+# Instantiate a Maximus object and initialize it.
+maximus = Maximus()
+argv = 'mmeScript.py'
+for s in sys.argv:
+ argv = argv + ' ' + s
+argc = len(sys.argv)+1
+maximus.init(argc,argv)
+
+# Create a stations.
+stationA = maximus.create_sta()
+stationA.remove()
+
+# Create mmentry
+#mmentryMethod = MmentryMethod()
+#mmentryMethod.createCC_CCO_APPOINT_REQ_MMENTRY(myReqType=0, myMacAddress=0x000102030405)
+#print mmentryMethod.mmentry.CC_CCO_APPOINT_REQ \ No newline at end of file