diff options
| author | masumotok <masumotok@nttdata.co.jp> | 2011-01-14 03:37:41 +0900 |
|---|---|---|
| committer | masumotok <masumotok@nttdata.co.jp> | 2011-01-14 03:37:41 +0900 |
| commit | b887c9bb04aabccf268abcccd32d9ab1c53ebfc0 (patch) | |
| tree | 7de4ea9122ed809a549f2eea11f35715fc79f536 /nova/utils.py | |
| parent | 41a9ad538cc70d4f8f39eb51c1d137917967b04c (diff) | |
| parent | efd116da3da634156f6acb8190d21f6ef24e0235 (diff) | |
merge trunk rev560
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 aadbec532..45adb7b38 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: |
