X-Git-Url: https://code.grnet.gr/git/snf-image-creator/blobdiff_plain/0ae01e26a7eccf4dc5fbc479507c1e0c063fba25..HEAD:/image_creator/__init__.py diff --git a/image_creator/__init__.py b/image_creator/__init__.py index 920cc24..06d6ecc 100644 --- a/image_creator/__init__.py +++ b/image_creator/__init__.py @@ -1,4 +1,6 @@ -# Copyright 2011 GRNET S.A. All rights reserved. +# -*- coding: utf-8 -*- +# +# Copyright 2012 GRNET S.A. All rights reserved. # # Redistribution and use in source and binary forms, with or # without modification, are permitted provided that the following @@ -31,26 +33,10 @@ # interpreted as representing official policies, either expressed # or implied, of GRNET S.A. -__version__ = '0.1' - -import image_creator.os_type - - -def get_os_class(distro, osfamily): - module = None - classname = None - try: - module = __import__("image_creator.os_type.%s" - % distro, fromlist=['image_creator.os_type']) - classname = distro.capitalize() - except ImportError: - module = __import__("image_creator.os_type.%s" - % osfamily, fromlist=['image_creator.os_type']) - classname = osfamily.capitalize() - - return getattr(module, classname) +"""Package for creating images to be used with Synnefo open source cloud +software. +""" -class FatalError(Exception): - pass +from image_creator.version import __version__ # vim: set sta sts=4 shiftwidth=4 sw=4 et ai :