r47111 - make the bin scripts work
hawkowl-TA+aISz0psMTMxyoc4vAAJOcrHinNvQL0E9HWUfgJXw@public.gmane.org Wed, 30 Mar 2016 11:11:31 -0600 (MDT)
| Newsgroups | gmane.comp.python.twisted.commits |
|---|---|
| Message-ID | <[email protected]> |
Author: hawkowl
Date: Wed Mar 30 11:11:27 2016
New Revision: 47111
Modified:
branches/src-move-8214-3/bin/_preamble.py
Log:
make the bin scripts work
Modified: branches/src-move-8214-3/bin/_preamble.py
==============================================================================
--- branches/src-move-8214-3/bin/_preamble.py (original)
+++ branches/src-move-8214-3/bin/_preamble.py Wed Mar 30 11:11:27 2016
@@ -13,7 +13,7 @@
path = os.path.abspath(sys.argv[0])
while os.path.dirname(path) != path:
- if os.path.exists(os.path.join(path, 'twisted', '__init__.py')):
- sys.path.insert(0, path)
+ if os.path.exists(os.path.join(path, 'src', 'twisted', '__init__.py')):
+ sys.path.insert(0, os.path.join(path, 'src'))
break
path = os.path.dirname(path)