From 4bd385ff394fae980f2bd3ea531a589c05ccd4b3 Mon Sep 17 00:00:00 2001 From: Alessandro Pasotti Date: Thu, 8 Feb 2018 18:28:40 +0100 Subject: [PATCH] [mxe] autopep8 --- ms-windows/mxe/deploy.py | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) mode change 100755 => 100644 ms-windows/mxe/deploy.py diff --git a/ms-windows/mxe/deploy.py b/ms-windows/mxe/deploy.py old mode 100755 new mode 100644 index 21b539f5d409..77903eafc366 --- a/ms-windows/mxe/deploy.py +++ b/ms-windows/mxe/deploy.py @@ -22,9 +22,12 @@ import argparse parser = argparse.ArgumentParser() -parser.add_argument("--build", help="where to place libraries, optional, files will go to target location by default") -parser.add_argument("--objdump", help="objdump executable (/home/user/mxe/usr/bin/i686-w64-mingw32.shared-objdump)") -parser.add_argument("--libs", help="where to search for libraries (optional) infers from objdump") +parser.add_argument( + "--build", help="where to place libraries, optional, files will go to target location by default") +parser.add_argument( + "--objdump", help="objdump executable (/home/user/mxe/usr/bin/i686-w64-mingw32.shared-objdump)") +parser.add_argument( + "--libs", help="where to search for libraries (optional) infers from objdump") parser.add_argument("target") args = parser.parse_args() @@ -42,9 +45,9 @@ libs = args.libs if not args.libs: - libs = objdump_path.replace('/bin', '').replace('-objdump','') + libs = objdump_path.replace('/bin', '').replace('-objdump', '') + - # build_path = "/home/user/ClionProjects/project/build/" # libs = "/home/user/mxe/usr/i686-w64-mingw32.shared" # objdump_path = "/home/user/mxe/usr/bin/i686-w64-mingw32.shared-objdump" @@ -56,7 +59,7 @@ def run_check(): def find_dll(dll): - out = subprocess.getoutput("find " + libs + " | grep -i '" + dll+"$'") + out = subprocess.getoutput("find " + libs + " | grep -i '" + dll + "$'") return out.strip('\n') @@ -107,6 +110,7 @@ def library_install_objdump(path, level): level += 1 library_install_objdump(dll, level) + skip_libs = list() done = list() @@ -115,9 +119,10 @@ def main(): os.chdir(build_path) - #library_install_exe(target) + # library_install_exe(target) library_install_objdump(target, 0) pass + main()