summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2015-05-25 09:03:22 +0000
committerDavid Robillard <d@drobilla.net>2015-05-25 09:03:22 +0000
commit7408e3bda837654463ea547e10e16ca2087f1c64 (patch)
treead63c68df098422b34a93b42c1e6f2bb6594abe5
parente2349ae25fcc118cb558baf885757f1b473ad097 (diff)
downloadingen-7408e3bda837654463ea547e10e16ca2087f1c64.tar.gz
ingen-7408e3bda837654463ea547e10e16ca2087f1c64.tar.bz2
ingen-7408e3bda837654463ea547e10e16ca2087f1c64.zip
Fix ingenish with TCP.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@5685 a436a847-0d15-0410-975c-d299462d15a1
-rw-r--r--scripts/ingen.py3
-rwxr-xr-xscripts/ingenish2
2 files changed, 3 insertions, 2 deletions
diff --git a/scripts/ingen.py b/scripts/ingen.py
index 6401fe35..12f52e92 100644
--- a/scripts/ingen.py
+++ b/scripts/ingen.py
@@ -16,6 +16,7 @@
import os
import rdflib
+import re
import socket
import sys
@@ -100,7 +101,7 @@ class Remote(Interface):
self.sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)
self.sock.connect(uri[len('unix://'):])
elif uri.startswith('tcp://'):
- self.sock = Socket(socket.AF_INET, socket.SOCK_STREAM)
+ self.sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
parsed = re.split('[:/]', uri[len('tcp://'):])
addr = (parsed[0], int(parsed[1]))
self.sock.connect(addr)
diff --git a/scripts/ingenish b/scripts/ingenish
index 8021d9ac..bc7d821a 100755
--- a/scripts/ingenish
+++ b/scripts/ingenish
@@ -104,7 +104,7 @@ if len(sys.argv) - a == 0:
print('error: %s' % sys.exc_info()[1])
else:
try:
- update = run(sys.argv[1:])
+ update = run(sys.argv[a:])
if update:
print(update.serialize(format='n3'))
except: