10000 Revert use of shlex.quote to avoid problems with python 2 · inclement/python-for-android@91e9f32 · GitHub
[go: up one dir, main page]

Skip to content

Commit 91e9f32

Browse files
author
Jonas Thiem
committed
Revert use of shlex.quote to avoid problems with python 2
1 parent fad5dd2 commit 91e9f32

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pythonforandroid/archs.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
from os import environ, uname
33
from os.path import (exists, join, dirname, split)
44
from glob import glob
5-
import shlex
65
import sys
76

87
from pythonforandroid.recipe import Recipe
@@ -67,7 +66,7 @@ def get_env(self, with_flags_in_cc=True, clang=False):
6766
# Link the extra global link paths first before anything else
6867
# (such that overriding system libraries with them is possible)
6968
env['LDFLAGS'] = ' ' + " ".join([
70-
"-L" + shlex.quote(l)
69+
"-L'" + l.replace("'", "'\"'\"'") + "'" # no shlex.quote in py2
7170
for l in self.extra_global_link_paths
7271
]) + ' '
7372

0 commit comments

Comments
 (0)
0