Skip to content

Commit 4bd385f

Browse files
committedFeb 8, 2018
[mxe] autopep8
1 parent b817a3f commit 4bd385f

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed
 

‎ms-windows/mxe/deploy.py

100755100644
Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,12 @@
2222
import argparse
2323
parser = argparse.ArgumentParser()
2424

25-
parser.add_argument("--build", help="where to place libraries, optional, files will go to target location by default")
26-
parser.add_argument("--objdump", help="objdump executable (/home/user/mxe/usr/bin/i686-w64-mingw32.shared-objdump)")
27-
parser.add_argument("--libs", help="where to search for libraries (optional) infers from objdump")
25+
parser.add_argument(
26+
"--build", help="where to place libraries, optional, files will go to target location by default")
27+
parser.add_argument(
28+
"--objdump", help="objdump executable (/home/user/mxe/usr/bin/i686-w64-mingw32.shared-objdump)")
29+
parser.add_argument(
30+
"--libs", help="where to search for libraries (optional) infers from objdump")
2831
parser.add_argument("target")
2932

3033
args = parser.parse_args()
@@ -42,9 +45,9 @@
4245

4346
libs = args.libs
4447
if not args.libs:
45-
libs = objdump_path.replace('/bin', '').replace('-objdump','')
48+
libs = objdump_path.replace('/bin', '').replace('-objdump', '')
49+
4650

47-
4851
# build_path = "/home/user/ClionProjects/project/build/"
4952
# libs = "/home/user/mxe/usr/i686-w64-mingw32.shared"
5053
# objdump_path = "/home/user/mxe/usr/bin/i686-w64-mingw32.shared-objdump"
@@ -56,7 +59,7 @@ def run_check():
5659

5760

5861
def find_dll(dll):
59-
out = subprocess.getoutput("find " + libs + " | grep -i '" + dll+"$'")
62+
out = subprocess.getoutput("find " + libs + " | grep -i '" + dll + "$'")
6063
return out.strip('\n')
6164

6265

@@ -107,6 +110,7 @@ def library_install_objdump(path, level):
107110
level += 1
108111
library_install_objdump(dll, level)
109112

113+
110114
skip_libs = list()
111115
done = list()
112116

@@ -115,9 +119,10 @@ def main():
115119

116120
os.chdir(build_path)
117121

118-
#library_install_exe(target)
122+
# library_install_exe(target)
119123
library_install_objdump(target, 0)
120124

121125
pass
122126

127+
123128
main()

0 commit comments

Comments
 (0)
Please sign in to comment.