summaryrefslogtreecommitdiff
path: root/install-lib.py
diff options
context:
space:
mode:
Diffstat (limited to 'install-lib.py')
-rwxr-xr-xinstall-lib.py19
1 files changed, 19 insertions, 0 deletions
diff --git a/install-lib.py b/install-lib.py
new file mode 100755
index 0000000..37895c7
--- /dev/null
+++ b/install-lib.py
@@ -0,0 +1,19 @@
+#! /usr/bin/python
+
+import sys
+import shutil
+
+found=0
+for p in sys.path:
+ pos = p.find('/local/', 0)
+ if pos >= 0:
+ found=1
+ print 'Installing into %s' % (p)
+ shutil.copy('_cleware.so', p)
+ shutil.copy('cleware.py', p)
+
+if found == 0:
+ print 'Could not find a location to copy the library into.'
+ print 'You may want to install cleware.py and _cleware.so into the appropriate directory.'
+else:
+ print 'Finished.'