~nova-coresec/nova/ppa-lucid

« back to all changes in this revision

Viewing changes to bin/nova-objectstore

  • Committer: Soren Hansen
  • Date: 2010-09-28 22:06:35 UTC
  • mfrom: (195.1.70 ubuntu-packaging)
  • Revision ID: soren.hansen@rackspace.com-20100928220635-dd3170esyd303n8o
Merge ubuntu packaging branch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
  Twisted daemon for nova objectstore. Supports S3 API.
22
22
"""
23
23
 
 
24
import os
 
25
import sys
 
26
 
 
27
# If ../nova/__init__.py exists, add ../ to Python search path, so that
 
28
# it will override what happens to be installed in /usr/(local/)lib/python...
 
29
possible_topdir = os.path.normpath(os.path.join(os.path.abspath(sys.argv[0]),
 
30
                                   os.pardir,
 
31
                                   os.pardir))
 
32
if os.path.exists(os.path.join(possible_topdir, 'nova', '__init__.py')):
 
33
    sys.path.insert(0, possible_topdir)
 
34
 
24
35
from nova import flags
25
36
from nova import utils
26
37
from nova import twistd
35
46
 
36
47
if __name__ == '__builtin__':
37
48
    utils.default_flagfile()
38
 
    application = handler.get_application() # pylint: disable-msg=C0103
 
49
    application = handler.get_application()  # pylint: disable-msg=C0103