diff options
| author | Rick Harris <rick.harris@rackspace.com> | 2011-01-12 13:47:40 -0600 |
|---|---|---|
| committer | Rick Harris <rick.harris@rackspace.com> | 2011-01-12 13:47:40 -0600 |
| commit | 8074b9f7e50174f05aad9ec06186f48da7812d94 (patch) | |
| tree | ba00ee3c31ee431a1efd94abcea7001ed6d801ca /nova/utils.py | |
| parent | f7975676ddc3928caa369464ca2c4191d890f466 (diff) | |
| parent | 67307428d6d6f47f3215f485a1af720013a5c2ae (diff) | |
| download | nova-8074b9f7e50174f05aad9ec06186f48da7812d94.tar.gz nova-8074b9f7e50174f05aad9ec06186f48da7812d94.tar.xz nova-8074b9f7e50174f05aad9ec06186f48da7812d94.zip | |
Merging trunk
Diffstat (limited to 'nova/utils.py')
| -rw-r--r-- | nova/utils.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/nova/utils.py b/nova/utils.py index 09ecd9c3a..544ec8b9d 100644 --- a/nova/utils.py +++ b/nova/utils.py @@ -153,6 +153,11 @@ def abspath(s): return os.path.join(os.path.dirname(__file__), s) +def novadir(): + import nova + return os.path.abspath(nova.__file__).split('nova/__init__.pyc')[0] + + def default_flagfile(filename='nova.conf'): for arg in sys.argv: if arg.find('flagfile') != -1: |
