Changeset 780 for python


Ignore:
Timestamp:
Jun 9, 2016, 12:36:42 PM (9 years ago)
Author:
Yuri Dario
Message:

python: fix file deletion. ticket#185.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • python/trunk/Lib/distutils/emxccompiler.py

    r775 r780  
    180180        # if filename exceed 8.3, create a symlink to 8.3 pyd
    181181        if len(os.path.basename(output_filename)) > 8+1+3:
    182             os.remove( output_filename)
     182            try:
     183                os.remove( output_filename)
     184            except OSError:
     185                pass
    183186            os.symlink( pyd_name8 + ".pyd", output_filename)
    184187
Note: See TracChangeset for help on using the changeset viewer.