~juju/ubuntu/quantal/juju/0.6

« back to all changes in this revision

Viewing changes to bin/relation-get

  • Committer: Package Import Robot
  • Author(s): Clint Byrum
  • Date: 2011-09-28 09:42:32 UTC
  • Revision ID: package-import@ubuntu.com-20110928094232-o1yozyv3nw3ejymz
Tags: upstream-0.5+bzr361
ImportĀ upstreamĀ versionĀ 0.5+bzr361

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/env python
 
2
 
 
3
# We avoid using PYTHONPATH because it can cause side effects on hook execution
 
4
import os, sys
 
5
 
 
6
if "JUJU_PYTHONPATH" in os.environ:
 
7
    sys.path[:0] = filter(None, os.environ["JUJU_PYTHONPATH"].split(":"))
 
8
 
 
9
from juju.hooks.commands import relation_get
 
10
 
 
11
if __name__ == '__main__':
 
12
    relation_get()