about summary refs log tree commit diff stats
path: root/example/jitter/run_with_linuxenv.py
diff options
context:
space:
mode:
authorPierre LALET <pierre.lalet@cea.fr>2019-04-09 10:59:54 +0200
committerPierre LALET <pierre.lalet@cea.fr>2019-04-09 11:19:57 +0200
commitf7c7756a3c8461fc3dfe275cdbcecafd9d94ccc4 (patch)
tree322e1e32b526aa6aad5493c4327f1bd2b00626c1 /example/jitter/run_with_linuxenv.py
parent57ab3d0fc327f23f995ea6000d1077c3f749ef20 (diff)
downloadmiasm-f7c7756a3c8461fc3dfe275cdbcecafd9d94ccc4.tar.gz
miasm-f7c7756a3c8461fc3dfe275cdbcecafd9d94ccc4.zip
Fix paths with Python 3
Diffstat (limited to 'example/jitter/run_with_linuxenv.py')
-rw-r--r--example/jitter/run_with_linuxenv.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/example/jitter/run_with_linuxenv.py b/example/jitter/run_with_linuxenv.py
index f981d2dd..9b17b172 100644
--- a/example/jitter/run_with_linuxenv.py
+++ b/example/jitter/run_with_linuxenv.py
@@ -78,7 +78,7 @@ elf_phdr_header = next(
 # Prepare the desired environment
 argv = [args.target.encode()] + [arg.encode() for arg in args.extra_args]
 if args.flags:
-    argv += ["-%s" % args.flags]
+    argv += [("-%s" % args.flags).encode()]
 envp = {b"PATH": b"/usr/local/bin", b"USER": linux_env.user_name}
 auxv = environment.AuxVec(
     elf_base_addr + elf_phdr_header.vaddr,