Skip to content
Snippets Groups Projects
Commit 15d687f7 authored by jkerdreu's avatar jkerdreu
Browse files

Missing uuidgen


git-svn-id: https://redmine.imt-atlantique.fr/svn/xaal/code/Python/branches/0.7@2643 b32b6428-25c9-4566-ad07-03861ab6144f
parent af4b8181
No related branches found
No related tags found
No related merge requests found
from xaal.lib import tools,config
import sys
def main():
uuid = None
if len(sys.argv) > 1:
value = sys.argv[1]
uuid = tools.get_uuid(value)
if uuid == None:
uuid=tools.get_random_uuid()
print("TXT: %s" % uuid)
print("HEX: ",end="")
for b in uuid.bytes:
print("0x%x" % b,end=',')
print()
print("INT: ",end="")
for b in uuid.bytes:
print("%d" % b,end=',')
print()
if __name__ == '__main__':
main()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment