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

« back to all changes in this revision

Viewing changes to vendor/Twisted-10.0.0/bin/tap2rpm

  • 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
#  based off the tap2deb code
 
7
#  tap2rpm built by Sean Reifschneider, <jafo@tummy.com>
 
8
 
 
9
"""
 
10
tap2rpm
 
11
"""
 
12
 
 
13
### Twisted Preamble
 
14
# This makes sure that users don't have to set up their environment
 
15
# specially in order to run these programs from bin/.
 
16
import sys, os, string
 
17
if string.find(os.path.abspath(sys.argv[0]), os.sep+'Twisted') != -1:
 
18
    sys.path.insert(0, os.path.normpath(os.path.join(os.path.abspath(sys.argv[0]), os.pardir, os.pardir)))
 
19
### end of preamble
 
20
 
 
21
from twisted.scripts import tap2rpm
 
22
tap2rpm.run()