From f7c7756a3c8461fc3dfe275cdbcecafd9d94ccc4 Mon Sep 17 00:00:00 2001 From: Pierre LALET Date: Tue, 9 Apr 2019 10:59:54 +0200 Subject: Fix paths with Python 3 --- example/jitter/run_with_linuxenv.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'example') 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, -- cgit 1.4.1