summaryrefslogtreecommitdiffstats
path: root/pyserver/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'pyserver/scripts')
-rw-r--r--pyserver/scripts/test_script.py10
-rw-r--r--pyserver/scripts/test_script2.py4
2 files changed, 14 insertions, 0 deletions
diff --git a/pyserver/scripts/test_script.py b/pyserver/scripts/test_script.py
new file mode 100644
index 0000000..8f236e9
--- /dev/null
+++ b/pyserver/scripts/test_script.py
@@ -0,0 +1,10 @@
+import sys
+if sys.version_info >= (3,0):
+ import binascii
+
+def run(ctx, inpt):
+ if sys.version_info >= (3,0):
+ return binascii.a2b_uu('111')
+ else:
+ return bytearray('111')
+
diff --git a/pyserver/scripts/test_script2.py b/pyserver/scripts/test_script2.py
new file mode 100644
index 0000000..16e4adb
--- /dev/null
+++ b/pyserver/scripts/test_script2.py
@@ -0,0 +1,4 @@
+description='this is a test script'
+
+def run(ctx, inpt):
+ return ctx.get_registers_list();