]> khamidou — GitHub mirrors - electron.git/commitdiff
make pylint happy
authorDane Springmeyer <dane@mapbox.com>
Thu, 31 Jul 2014 18:58:45 +0000 (11:58 -0700)
committerDane Springmeyer <dane@mapbox.com>
Thu, 31 Jul 2014 18:58:45 +0000 (11:58 -0700)
script/update.py

index 61bd4e3a081e3ba6c563b12b59870702743ceb89..807c8f79defb801fd4567f4c47c666b942d7bfcf 100755 (executable)
@@ -24,9 +24,11 @@ def update_gyp():
   gyp = os.path.join('vendor', 'brightray', 'vendor', 'gyp', 'gyp_main.py')
   python = sys.executable
   arch = 'ia32'
-  if sys.platform.startswith('linux') and sys.maxsize > 2**32 or sys.platform == 'darwin':
+  if sys.platform.startswith('linux') and sys.maxsize > 2**32:
     arch = 'x64'
-  if sys.platform in ['cygwin', 'win32']:
+  elif sys.platform == 'darwin':
+    arch = 'x64'
+  elif sys.platform in ['cygwin', 'win32']:
     python = os.path.join('vendor', 'python_26', 'python.exe')
   subprocess.call([python, gyp,
                    '-f', 'ninja', '--depth', '.', 'atom.gyp',