aboutsummaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/sosreport6
1 files changed, 5 insertions, 1 deletions
diff --git a/bin/sosreport b/bin/sosreport
index af6fab68..43d58acb 100755
--- a/bin/sosreport
+++ b/bin/sosreport
@@ -10,8 +10,12 @@
""" sos entry point. """
import sys
+import os
try:
- from sos.sosreport import main
+ # allow running from the git checkout, even though as of 4.0 we are moving
+ # binaries into a bin/ top-level directory.
+ sys.path.append(os.getcwd())
+ from sos.report.sosreport import main
except KeyboardInterrupt:
raise SystemExit()