Changeset 1381 for python


Ignore:
Timestamp:
Apr 18, 2018, 1:38:54 PM (7 years ago)
Author:
dmik
Message:

python: Expect missing BEGINLIBPATH in environment on OS/2.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • python/trunk/Lib/site.py

    r394 r1381  
    326326    """
    327327    dllpath = os.path.join(sys.prefix, "Lib", "lib-dynload")
    328     libpath = os.environ['BEGINLIBPATH'].split(';')
     328    libpath = os.environ.get('BEGINLIBPATH', '').split(';')
    329329    if libpath[-1]:
    330330        libpath.append(dllpath)
Note: See TracChangeset for help on using the changeset viewer.