Hot-keys on this page

r m x p   toggle line displays

j k   next/prev highlighted chunk

0   (zero) top of page

1   (one) first highlighted chunk

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

 

# Workaround for C runtime issue from Python's uuid module. 

# This seems to be a problem with the software built using VS 2013 

# against the official Python precompiled binaries. 

# http://blender.stackexchange.com/questions/7665/pythons-uuid-module-cause-c-runtime-error-in-ms-windows 

def uuid_workaround(): 

    import platform 

    if platform.system() == "Windows": 

        import ctypes 

        CDLL = ctypes.CDLL 

        ctypes.CDLL = None 

        import uuid 

        ctypes.CDLL = CDLL 

 

uuid_workaround() 

 

import uuid 

 

def newUUID(): 

    return str(uuid.uuid1())