~certify-web-dev/twisted/certify-trunk

« back to all changes in this revision

Viewing changes to bin/conch/tkconch

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2007-01-17 14:52:35 UTC
  • mfrom: (1.1.5 upstream) (2.1.2 etch)
  • Revision ID: james.westby@ubuntu.com-20070117145235-btmig6qfmqfen0om
Tags: 2.5.0-0ubuntu1
New upstream version, compatible with python2.5.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/env python
 
2
 
 
3
# Twisted, the Framework of Your Internet
 
4
# Copyright (c) 2001-2004 Twisted Matrix Laboratories.
 
5
# See LICENSE for details.
 
6
 
 
7
 
 
8
### Twisted Preamble
 
9
# This makes sure that users don't have to set up their environment
 
10
# specially in order to run these programs from bin/.
 
11
import sys, os
 
12
path = os.path.abspath(sys.argv[0])
 
13
while os.path.dirname(path) != path:
 
14
    if os.path.basename(path).startswith('Twisted'):
 
15
        sys.path.insert(0, path)
 
16
        break
 
17
    path = os.path.dirname(path)
 
18
### end of preamble
 
19
 
 
20
from twisted.conch.scripts.tkconch import run
 
21
run()