diff mbox series

[1/3] device-crash-test: No need for sys.path hack

Message ID 20180618225131.13113-2-ehabkost@redhat.com
State New
Headers show
Series python: Revert sys.path hacks used for compat modules | expand

Commit Message

Eduardo Habkost June 18, 2018, 10:51 p.m. UTC
The device-crash-test script is already inside the 'scripts'
directory, there's no need to add the directory manually to
sys.path.

Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
---
 scripts/device-crash-test | 1 -
 1 file changed, 1 deletion(-)

Comments

Daniel P. Berrangé June 19, 2018, 8:54 a.m. UTC | #1
On Mon, Jun 18, 2018 at 07:51:29PM -0300, Eduardo Habkost wrote:
> The device-crash-test script is already inside the 'scripts'
> directory, there's no need to add the directory manually to
> sys.path.
> 
> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
> ---
>  scripts/device-crash-test | 1 -
>  1 file changed, 1 deletion(-)


Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>


Regards,
Daniel
diff mbox series

Patch

diff --git a/scripts/device-crash-test b/scripts/device-crash-test
index e6c233e9bf..52a2a613d4 100755
--- a/scripts/device-crash-test
+++ b/scripts/device-crash-test
@@ -35,7 +35,6 @@  import random
 import argparse
 from itertools import chain
 
-sys.path.append(os.path.join(os.path.dirname(__file__), '..', 'scripts'))
 from qemu import QEMUMachine
 
 logger = logging.getLogger('device-crash-test')