Browse Source

Trick to link to dir from which script is called

JC Brand 11 năm trước cách đây
mục cha
commit
1be8a38621
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      activate

+ 1 - 1
activate

@@ -25,7 +25,7 @@ deactivate () {
 # unset irrelavent variables
 deactivate nondestructive
 
-VIRTUAL_ENV="~/converse.js"
+VIRTUAL_ENV="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
 export VIRTUAL_ENV
 
 _OLD_VIRTUAL_PATH="$PATH"