diff --git a/terminatorlib/util.py b/terminatorlib/util.py index c9143df2..8cb1b554 100755 --- a/terminatorlib/util.py +++ b/terminatorlib/util.py @@ -277,8 +277,10 @@ def enumerate_descendants(parent): len(terminals), parent)) return(containers, terminals) -def make_uuid(): +def make_uuid(str_uuid=None): """Generate a UUID for an object""" + if str_uuid: + return uuid.UUID(str_uuid) return uuid.uuid4() def inject_uuid(target):