Intel® System Debugger User Guide

ID 648476
Date 06/13/2024
Confidential
Document Table of Contents

Executing External Python* Scripts

To import and execute external Python* scripts from an IPython shell provided by the ISD Shell:

  1. Launch the ISD Shell.

  2. Navigate to your script file location by executing the following script:

    import os
    
    os.chdir('<directory_path>')
    

    where <directory_​path> points to the folder containing the Python script you want to execute.

  3. Import your script as a Python module:

    import <script_name>
    

    where <script_​name> equals your Python file name without extensions.

Now you can proceed with executing your script.