Skip to content

Commit 70a687f

Browse files
committed
cannot run package from command line, so just warn on import
1 parent 0672438 commit 70a687f

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

virtualenvwrapper/__init__.py

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
"""virtualenvwrapper module
22
"""
33

4-
if __name__ == '__main__':
5-
import os
6-
import webbrowser
7-
docs_root = os.path.join(os.path.dirname(__file__), 'docs', 'index.html')
8-
webbrowser.open_new('file://' + docs_root)
9-
else:
10-
import warnings
11-
warnings.warn('Use virtualenvwrapper_bashrc to set up your shell environment.')
4+
import warnings
5+
docs_root = os.path.join(os.path.dirname(__file__), 'docs', 'index.html')
6+
warnings.warn('Use virtualenvwrapper_bashrc to set up your shell environment. See %s for details.' % docs_root)

0 commit comments

Comments
 (0)