--- a/GDBDebugger.st Mon Jul 08 10:58:09 2019 +0100
+++ b/GDBDebugger.st Mon Jul 08 12:34:18 2019 +0100
@@ -664,6 +664,28 @@
"Created: / 19-01-2019 / 21:55:09 / Jan Vrany <jan.vrany@fit.cvut.cz>"
!
+pythonImport: module
+ "Import a Python module"
+
+ self send: ('python import ', module )
+
+ "Created: / 08-07-2019 / 11:22:45 / Jan Vrany <jan.vrany@fit.cvut.cz>"
+!
+
+pythonSysPathAppend: directory
+ "Append given directory to Python's `sys.path` so modules found
+ there can be `import`ed."
+
+ | dir |
+
+ dir := directory asFilename.
+
+ self assert: dir isDirectory.
+ self send: ('python import sys; sys.path.append("%1")' bindWith: (GDBMIPrinter cescaped: dir pathName))
+
+ "Created: / 08-07-2019 / 11:21:58 / Jan Vrany <jan.vrany@fit.cvut.cz>"
+!
+
selectFrame: aGDBFrame
"
Set the context frame to given frame. This frame is then