diff --git a/scripts/set_user_id.py b/scripts/set_user_id.py index 905d1675..f9523832 100755 --- a/scripts/set_user_id.py +++ b/scripts/set_user_id.py @@ -132,7 +132,7 @@ if __name__ == '__main__': # Convert to binary try: user_id_int = int('0x' + user_id_value, 0) - user_id_bits = '{0:032b}'.format(user_id_int) + user_id_bits = '{0:032b}'.format(user_id_int)[::-1] except: user_project_path = arguments[0] @@ -170,7 +170,7 @@ if __name__ == '__main__': try: user_id_int = int('0x' + user_id_value, 0) - user_id_bits = '{0:032b}'.format(user_id_int) + user_id_bits = '{0:032b}'.format(user_id_int)[::-1] except: print('Error: Cannot parse user ID "' + user_id_value + '" as an 8-digit hex number.') sys.exit(1)