User and Reference Guide

  • 2021.1
  • 12/04/2020
  • Public Content
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.

Product and Performance Information

1

Performance varies by use, configuration and other factors. Learn more at www.Intel.com/PerformanceIndex.