~justin-fathomdb/nova/justinsb-openstack-api-volumes

« back to all changes in this revision

Viewing changes to vendor/Twisted-10.0.0/bin/conch/tkconch

  • Committer: Jesse Andrews
  • Date: 2010-05-28 06:05:26 UTC
  • Revision ID: git-v1:bf6e6e718cdc7488e2da87b21e258ccc065fe499
initial commit

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/env python
 
2
 
 
3
# Copyright (c) 2001-2009 Twisted Matrix Laboratories.
 
4
# See LICENSE for details.
 
5
 
 
6
 
 
7
### Twisted Preamble
 
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
 
11
path = os.path.abspath(sys.argv[0])
 
12
while os.path.dirname(path) != path:
 
13
    if os.path.basename(path).startswith('Twisted'):
 
14
        sys.path.insert(0, path)
 
15
        break
 
16
    path = os.path.dirname(path)
 
17
### end of preamble
 
18
 
 
19
from twisted.conch.scripts.tkconch import run
 
20
run()