summaryrefslogtreecommitdiff
path: root/install-lib.py
diff options
context:
space:
mode:
authorDonghoon Shin <dhs.shin@samsung.com>2016-09-19 17:36:01 +0900
committerDonghoon Shin <dhs.shin@samsung.com>2016-09-19 17:36:01 +0900
commite8acd13cc87ea038ecd6103e4088ce3cf5d501d7 (patch)
tree4c7c8cc683a297463996aa286f2f7758e8691b8f /install-lib.py
parentb95c2492274542bc4718a863f5d88f37a0a788ab (diff)
downloadclewarecontrol-accepted/tizen_devbase_tools.tar.gz
clewarecontrol-accepted/tizen_devbase_tools.tar.bz2
clewarecontrol-accepted/tizen_devbase_tools.zip
Change-Id: I59bac2188ffbfe5a2ad2d9dcb33847aabfaffe44
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.'