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

pull/5181/head
James Tanner 11 years ago
parent 01388d1d21
commit bf78d8cf73

@ -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'

Loading…
Cancel
Save