diff options
Diffstat (limited to 'Lib/platform.py')
-rwxr-xr-x | Lib/platform.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/platform.py b/Lib/platform.py index 0182180..27ea1b4 100755 --- a/Lib/platform.py +++ b/Lib/platform.py @@ -940,6 +940,9 @@ def _syscmd_file(target,default=''): case the command should fail. """ + if sys.platform in ('dos','win32','win16','os2'): + # XXX Others too ? + return default target = _follow_symlinks(target) try: f = os.popen('file %s 2> /dev/null' % target) |