Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
Nodeenv changelog
=================

Version [unreleased]
--------------------

- Added check for how `activate` is called.

Version 1.3.1
-------------
- Windows related fix `#207 <https://github.com/ekalinin/nodeenv/pull/207>`_
Expand Down
10 changes: 10 additions & 0 deletions nodeenv.py
Original file line number Diff line number Diff line change
Expand Up @@ -1344,6 +1344,16 @@ def main():
fi
}


# Detect calling this file as a script
case $0 in
*/bin/activate )
echo "Do not call $0 directly. Instead source it with \`source $0\`."
exit 1
;;
esac


# unset irrelevant variables
deactivate_node nondestructive

Expand Down