relative imports to absolute imports (fixes #2667)

This commit is contained in:
gwen 2012-07-23 14:39:16 +02:00
parent 9b876f6463
commit a871cab083
8 changed files with 11 additions and 11 deletions

View File

@ -9,6 +9,6 @@ setup(
version='1.0',
description='configuration management tool',
url='http://labs.libre-entreprise.org/projects/tiramisu',
package_dir = {'tiramisu':'src'},
package_dir = {'tiramisu':'tiramisu'},
packages=['tiramisu']
)

View File

@ -19,7 +19,7 @@
# the whole pypy projet is under MIT licence
# ____________________________________________________________
"enables us to carry out a calculation and return an option's value"
from error import DisabledOptionError, SpecialOwnersError
from tiramisu.error import DisabledOptionError, SpecialOwnersError
# ____________________________________________________________
# automatic Option object
special_owners = ['auto', 'fill']

View File

@ -20,14 +20,14 @@
# the rough pypy's guys: http://codespeak.net/svn/pypy/dist/pypy/config/
# the whole pypy projet is under MIT licence
# ____________________________________________________________
from error import (HiddenOptionError, ConfigError, NotFoundError,
from copy import copy
from tiramisu.error import (HiddenOptionError, ConfigError, NotFoundError,
AmbigousOptionError, ConflictConfigError, NoMatchingOptionFound,
SpecialOwnersError, MandatoryError, MethodCallError,
DisabledOptionError, ModeOptionError)
from option import (OptionDescription, Option, SymLinkOption, group_types,
from tiramisu.option import (OptionDescription, Option, SymLinkOption, group_types,
Multi, apply_requires, modes)
from autolib import special_owners, special_owner_factory
from copy import copy
from tiramisu.autolib import special_owners, special_owner_factory
# ______________________________________________________________________
# generic owner. 'default' is the general config owner after init time
default_owner = 'user'

View File

@ -20,9 +20,9 @@
# the rough pypy's guys: http://codespeak.net/svn/pypy/dist/pypy/config/
# the whole pypy projet is under MIT licence
# ____________________________________________________________
from autolib import special_owners
from basetype import HiddenBaseType, DisabledBaseType, ModeBaseType, modes
from error import (ConfigError, ConflictConfigError, NotFoundError,
from tiramisu.autolib import special_owners
from tiramisu.basetype import HiddenBaseType, DisabledBaseType, ModeBaseType, modes
from tiramisu.error import (ConfigError, ConflictConfigError, NotFoundError,
SpecialOwnersError, RequiresError)
available_actions = ['hide', 'show', 'enable', 'disable']
reverse_actions = {'hide': 'show', 'show': 'hide',

View File

@ -17,8 +17,8 @@
# The original `Config` design model is unproudly borrowed from
# the rough gus of pypy: pypy: http://codespeak.net/svn/pypy/dist/pypy/config/
# the whole pypy projet is under MIT licence
from config import Config
from option import (OptionDescription, Option, ChoiceOption, BoolOption,
from tiramisu.config import Config
from tiramisu.option import (OptionDescription, Option, ChoiceOption, BoolOption,
FloatOption, StrOption, IntOption, IPOption, NetmaskOption,
ArbitraryOption, group_types, apply_requires)