File: fixpath.py

package info (click to toggle)
python-colorama 0.4.6-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 448 kB
  • sloc: python: 1,428; sh: 49; makefile: 41
file content (8 lines) | stat: -rw-r--r-- 384 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
# Copyright Jonathan Hartley 2013. BSD 3-Clause license, see LICENSE file.

# Add demo dir's parent to sys path, so that 'import colorama' always finds
# the local source in preference to any installed version of colorama.
import sys
from os.path import normpath, dirname, join
local_colorama_module = normpath(join(dirname(__file__), '..'))
sys.path.insert(0, local_colorama_module)