def setBEGINLIBPATH():
 dllpath = os.path.join(sys.prefix, 'Lib', 'lib-dynload')
 libpath = os.environ['BEGINLIBPATH'].split(';')
 if libpath[(-1)]:
  libpath.append(dllpath)
 else:
  libpath[(-1)] = dllpath
 os.environ['BEGINLIBPATH'] = ';'.join(libpath)

def setBEGINLIBPATH ( ) : dllpath = os . path . join ( sys . prefix , 'Lib' , 'lib-dynload' ) libpath = os . environ [ 'BEGINLIBPATH' ] . split ( ';' ) if libpath [ ( - 1 ) ] : libpath . append ( dllpath ) else : libpath [ ( - 1 ) ] = dllpath os . environ [ 'BEGINLIBPATH' ] = ';' . join ( libpath )
the os/2 emx port has optional extension modules that do double duty as dlls for other extensions .