summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2016-02-23 08:18:40 +0100
committerSuren A. Chilingaryan <csa@suren.me>2016-02-23 08:18:40 +0100
commit3f3b678b15eef0d102a021e07c8476b45e52940a (patch)
tree3447dda18e8ce6d62e685c632288bbe39bfdbd26
parentdbef1e0271da298a0cbdc951dda84b7f150bbad0 (diff)
downloadpcitool-3f3b678b15eef0d102a021e07c8476b45e52940a.tar.gz
pcitool-3f3b678b15eef0d102a021e07c8476b45e52940a.tar.bz2
pcitool-3f3b678b15eef0d102a021e07c8476b45e52940a.tar.xz
pcitool-3f3b678b15eef0d102a021e07c8476b45e52940a.zip
Add run script to run python scripts and binary executables in the local environment
-rw-r--r--CMakeLists.txt4
-rwxr-xr-xrun5
2 files changed, 9 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index b77529e..ed19146 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -118,6 +118,10 @@ if (NOT CMAKE_SOURCE_DIR STREQUAL CMAKE_BINARY_DIR)
DESTINATION ${CMAKE_BINARY_DIR}
FILE_PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE
)
+ file(COPY ${CMAKE_SOURCE_DIR}/run
+ DESTINATION ${CMAKE_BINARY_DIR}
+ FILE_PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE
+ )
endif(NOT CMAKE_SOURCE_DIR STREQUAL CMAKE_BINARY_DIR)
install(FILES
diff --git a/run b/run
new file mode 100755
index 0000000..42160f2
--- /dev/null
+++ b/run
@@ -0,0 +1,5 @@
+#! /bin/bash
+
+APP_PATH=`dirname $0`
+
+PYTHONPATH="$APP_PATH/pywrap:$PYTHONPATH" PCILIB_MODEL_DIR="$APP_PATH/xml" LD_LIBRARY_PATH="$APP_PATH/pcilib" $*