forked from behave/behave.example
-
Notifications
You must be signed in to change notification settings - Fork 5
/
.pythonrc.py
29 lines (26 loc) · 995 Bytes
/
.pythonrc.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/usr/bin/env python
#=============================================================================
# PROJECT-SPECIFIC: Setup PYTHONPATH
#=============================================================================
# AUTHOR: Jens Engel
# LANGUAGE: Python >= 2.5
# ENVIRONMENT: Multi-Environment (Win32, Cygwin, UNIX).
# DESCRIPTION:
# This file provides a project-specific pyth init for Python.
#
#=============================================================================
# COPYRIGHT (c) 2010 by Jens Engel, ALL RIGHTS RESERVED
#=============================================================================
# -- IMPORTS:
import os.path
import sys
HERE = os.path.dirname(__file__)
HEREA = os.path.abspath(HERE)
PYTHONPATH = [
os.curdir,
os.path.normpath(HEREA),
os.path.normpath(os.path.join(HEREA, "tests")),
]
if os.path.exists(PYTHONPATH[0]) and PYTHONPATH[0] not in sys.path:
# -- SETUP SEARCH PATH for PROJECT:
sys.path = PYTHONPATH + sys.path