Automate - Import Python Modules

The material in this document is for informational purposes only. This guide assumes that the most recent version of Rampiva Automate is in use unless otherwise noted in the prerequisites. The products it describes are subject to change without prior notice, due to the manufacturer’s continuous development program. Rampiva makes no representations or warranties with respect to this document or with respect to the products described herein. Rampiva shall not be liable for any damages, losses, costs or expenses, direct, indirect or incidental, consequential or special, arising out of, or related to the use of this material or the products described herein.

Introduction

This article describes the steps required to import third-party python modules to use inside the Script operation in Rampiva workflows.

Prerequisites 

  • Administrative permissions to install python


Instructions

A. Import Python Module

1

Check the version of python that is distributed with Nuix / Rampiva by running the following script:

import sys print sys.version

 

2

Download and install python with the same version

 

3

Install the required package in the local python installation. This will place the package into the site-packages folder of the python installation.

 

4

When running a script in Nuix / Rampiva, add the path to the site-packages to the sys path, using the code below:

import sys path_to_library = 'C:\Python27\Lib\site-packages' sys.path.append(path_to_library)