diff options
| author | Nachi Ueno <nati.ueno@gmail.com> | 2011-01-12 18:46:01 +0900 |
|---|---|---|
| committer | Nachi Ueno <nati.ueno@gmail.com> | 2011-01-12 18:46:01 +0900 |
| commit | 0a33f1ed87ffb2ad3ff6c41848e2bb254a62e3da (patch) | |
| tree | bd42398ad08cecdcf72c54c7982d57a8867f6402 /nova/utils.py | |
| parent | 04cd3241f442f1c6a9fd030ab47b4d15e79ec032 (diff) | |
| parent | 76fdd667f2efe7e2dc710fe0254437d176efb45c (diff) | |
| download | nova-0a33f1ed87ffb2ad3ff6c41848e2bb254a62e3da.tar.gz nova-0a33f1ed87ffb2ad3ff6c41848e2bb254a62e3da.tar.xz nova-0a33f1ed87ffb2ad3ff6c41848e2bb254a62e3da.zip | |
Merged with 549
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 a13fa214c..49344699a 100644 --- a/nova/utils.py +++ b/nova/utils.py @@ -155,6 +155,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: |
