r46991 - make the bin scripts work
hawkowl-TA+aISz0psMTMxyoc4vAAJOcrHinNvQL0E9HWUfgJXw@public.gmane.org Mon, 14 Mar 2016 04:46:45 -0600 (MDT)
| Newsgroups | gmane.comp.python.twisted.commits |
|---|---|
| Message-ID | <[email protected]> |
Author: hawkowl
Date: Mon Mar 14 04:46:42 2016
New Revision: 46991
Modified:
branches/src-move-8214-2/bin/_preamble.py
Log:
make the bin scripts work
Modified: branches/src-move-8214-2/bin/_preamble.py
==============================================================================
--- branches/src-move-8214-2/bin/_preamble.py (original)
+++ branches/src-move-8214-2/bin/_preamble.py Mon Mar 14 04:46:42 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)