Project

General

Profile

Development Environment » History » Version 1

Version 1/2 - Next » - Current version
Luke Murphey, 03/03/2012 05:11 AM


Development Environment

Setting Up Python

Python in Splunk 4.3 generates an error unless the PYTHONPATH environment variable is defined. This makes it difficult to make Eclipse use Splunk's Python since Eclipse tries to run Python when initializing it. You can getEclipse to load Splunk's Python by adding a batch script to Splunk's bin directory with the following:

@echo off
"C:\Program Files\Splunk\bin\splunk.exe" cmd python %*

Tell Eclipse to load the batch file and it should load fine.