From: Nick Morrott <knowledgejunkie@gmail.com>
Date: Sun, 24 May 2020 10:21:35 -0700
Subject: Update module search path for mu/mu-debug

Forwarded: not-needed
Reviewed-by: Nick Morrott <knowledgejunkie@gmail.com>
Last-Update: 2019-06-17

When launched, mu-debug is unable to find the mu modules it depends
on because it is launched from a subdirectory of the mu module directory
structure. This patch updates the module search path to include the
root directory of the mu module structure.
Last-Update: 2019-06-17
---
 mu/mu-debug.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/mu/mu-debug.py b/mu/mu-debug.py
index 03fcce7..262f8bc 100644
--- a/mu/mu-debug.py
+++ b/mu/mu-debug.py
@@ -1,6 +1,10 @@
 #!/usr/bin/env python3
 import os
 import sys
+
+import os.path
+sys.path.insert(0, os.path.dirname(sys.path[0]))
+
 from mu.app import debug
 
 
