Move segments.core packages out of subdirectories

This commit is contained in:
Kim Silkebækken 2013-01-09 16:09:50 +01:00
parent 4c2dd90e9d
commit 8d584d059d
7 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@ class Segments(object):
def get_function(self, segment):
oldpath = sys.path
sys.path = self.path + sys.path
segment_module = str(segment.get('module', 'powerline.ext.{0}.segments.core'.format(self.ext)))
segment_module = str(segment.get('module', 'powerline.ext.{0}.segments'.format(self.ext)))
try:
return None, getattr(import_module(segment_module), segment['name']), '{0}.{1}'.format(segment_module, segment['name'])