Fix issue with function segment key generation

This commit is contained in:
Kim Silkebækken 2012-12-14 16:03:41 +01:00
parent 05505c3dd1
commit f550bd37f8
1 changed files with 1 additions and 1 deletions

View File

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