diff --git a/src/simian/util/link_module.sh b/src/simian/util/link_module.sh index e3b7966..d4133be 100755 --- a/src/simian/util/link_module.sh +++ b/src/simian/util/link_module.sh @@ -10,9 +10,26 @@ function find_module() { python </dev/null) + if [[ ! -z "${egg}" ]]; then + echo "${egg}" + fi } function find_egg_dir() { @@ -53,6 +75,13 @@ function link_module() { return fi + local path=$(find_sitepackage_module ${module}) + if [[ ! -z "${path}" ]]; then + rm -f "${GAE_BUNDLE}/${module}" + ln -s "${path}" "${GAE_BUNDLE}/${module}" + return + fi + echo "ERROR: path not found for ${module}. symlink creation failure." exit 1 }