Permalink
Browse files

Export PYTHONPATH so it's available for the emulator

Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
  • Loading branch information...
1 parent 9eef95a commit 6e107fa92c121482be9f9804b57b154116fc697b Nico Schottelius committed Nov 2, 2012
Showing with 6 additions and 1 deletion.
  1. +5 −1 bin/cdist
  2. +1 −0 docs/changelog
View
@@ -26,4 +26,8 @@ dir=${0%/*}
# Ensure version is present - the bundled/shipped version contains a static version,
# the git version contains a dynamic version
"$dir/../build" version
-PYTHONPATH="${dir}/../" "$dir/../scripts/cdist" "$@"
+
+libdir=$(cd "${dir}/../" && pwd -P)
+export PYTHONPATH="${libdir}"
+
+"$dir/../scripts/cdist" "$@"
View
@@ -6,6 +6,7 @@ Changelog
2.1.0pre6:
* New Example: Turn remote calls into local calls (used for unittesting)
+ * Core: Export PYTHONPATH, it's also needed by emulator
2.1.0pre5: 2012-11-01
* Core: First round of tests updated to work with multiple configuration directories

0 comments on commit 6e107fa

Please sign in to comment.