3
# Copyright (c) 2001-2009 Twisted Matrix Laboratories.
4
# See LICENSE for details.
8
# This makes sure that users don't have to set up their environment
9
# specially in order to run these programs from bin/.
10
import sys, os, string
11
if string.find(os.path.abspath(sys.argv[0]), os.sep+'Twisted') != -1:
12
sys.path.insert(0, os.path.normpath(os.path.join(os.path.abspath(sys.argv[0]), os.pardir, os.pardir)))
13
if not hasattr(os, "getuid") or os.getuid() != 0:
14
sys.path.insert(0, os.getcwd())
17
from twisted.scripts.tapconvert import run