Remove eventual trailing slash in trace path
authorJulien Desfossez <jdesfossez@efficios.com>
Mon, 22 Feb 2016 17:27:53 +0000 (12:27 -0500)
committerAntoine Busque <abusque@efficios.com>
Wed, 24 Feb 2016 23:22:47 +0000 (18:22 -0500)
Signed-off-by: Julien Desfossez <jdesfossez@efficios.com>
lttnganalyses/cli/command.py

index 93df78657c181e41d43422ad9ac6673c0d12a3e2..1445ea190e44d0683dd09e396ec17c1bc839761c 100644 (file)
@@ -174,6 +174,9 @@ class Command:
 
     def _read_tracer_version(self):
         kernel_path = None
+        # remove the trailing /
+        while self._args.path.endswith('/'):
+            self._args.path = self._args.path[:-1]
         for root, _, _ in os.walk(self._args.path):
             if root.endswith('kernel'):
                 kernel_path = root
This page took 0.024556 seconds and 5 git commands to generate.