Fix issue with function segment key generation
This commit is contained in:
parent
05505c3dd1
commit
f550bd37f8
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue