1
0
Fork 0
mirror of https://github.com/fastogt/pyfastogt synced 2025-03-09 23:38:55 +00:00

+x for exec file

This commit is contained in:
topilski 2017-12-25 16:12:31 +03:00
parent 32a9b71d46
commit 5034f903b6

View file

@ -2,6 +2,7 @@
import errno
import os
import stat
import re
import shutil
import subprocess
@ -110,6 +111,9 @@ def extract_file(path, current_dir):
def build_command_configure(compiler_flags: CompileInfo, source_dir_path, prefix_path, executable='./configure'):
# patches
script_dir = os.path.dirname(source_dir_path)
# +x for exec file
st = os.stat(executable)
os.chmod(executable, st.st_mode | stat.S_IEXEC)
for file_names in compiler_flags.patches():
scan_dir = os.path.join(script_dir, file_names)