Addresses #5090 setup module was using path.is_file instead of path.isfile

This commit is contained in:
James Tanner 2013-12-05 11:36:54 -05:00
parent 01388d1d21
commit bf78d8cf73

View file

@ -122,7 +122,7 @@ def get_distribution():
if platform.system() == 'Linux':
try:
distribution = platform.linux_distribution()[0].capitalize()
if not distribution and os.path.is_file('/etc/system-release'):
if not distribution and os.path.isfile('/etc/system-release'):
distribution = platform.linux_distribution(supported_dists=['system'])[0].capitalize()
if 'Amazon' in distribution:
distribution = 'Amazon'