From: Henning Schild Date: Tue, 5 Aug 2014 12:08:52 +0000 (+0200) Subject: tools: config-create: use os.path.join to construct filenames X-Git-Url: https://rtime.felk.cvut.cz/gitweb/jailhouse.git/commitdiff_plain/40ce7d8342e4716de8cb82531cb2de0c03c1f748 tools: config-create: use os.path.join to construct filenames Use os.path.join instead of + '/'. The script is Linux only but it is still cleaner. Signed-off-by: Henning Schild Signed-off-by: Jan Kiszka --- diff --git a/tools/jailhouse-config-create b/tools/jailhouse-config-create index 3bce969..187d59e 100755 --- a/tools/jailhouse-config-create +++ b/tools/jailhouse-config-create @@ -82,7 +82,7 @@ class PCICapability: @staticmethod def parse_pcicaps(dir): caps = [] - f = input_open(dir + '/config', 'rb') + f = input_open(os.path.join(dir, 'config'), 'rb') f.seek(0x06) (status,) = struct.unpack('