How do I get access back to my module?

Posted on
Mon Jun 20, 2022 10:51 am
wikner offline
Posts: 181
Joined: Nov 02, 2003

How do I get access back to my module?

I have a bunch of sprinkler-controlling code which I placed in a module called "sprinklers"
A typical action will have an embedded python script such as the following:
Code: Select all
import sprinklers
sprinklers.current_status()
My module used to (and actually still does, so its not lost) live at:
/Library/Python/2.7/site-packages/sprinklers.py
Where should I put this module so that Indigo 2202.1 can read it?
P.S. After all these years, I am still too lazy to learn how to make a plugin for my sprinklers.

Posted on
Mon Jun 20, 2022 11:47 am
FlyingDiver offline
User avatar
Posts: 7221
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: How do I get access back to my module?

Code: Select all
/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Mon Jun 20, 2022 11:49 am
howartp offline
Posts: 4559
Joined: Jan 09, 2014
Location: West Yorkshire, UK

Re: How do I get access back to my module?

My suspicion is:

/Library/Application Support/Perceptive Automation/Python2-includes/

Or …../Python3-includes/


Sent from my iPad using Tapatalk Pro

Posted on
Mon Jun 20, 2022 11:49 am
howartp offline
Posts: 4559
Joined: Jan 09, 2014
Location: West Yorkshire, UK

Re: How do I get access back to my module?

Ah, Joe beat me to it.


Sent from my iPad using Tapatalk Pro

Posted on
Mon Jun 20, 2022 11:49 am
FlyingDiver offline
User avatar
Posts: 7221
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: How do I get access back to my module?

Also, you might need to make changes to support Python3, since your script will be running under that version.

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Mon Jun 20, 2022 11:50 am
FlyingDiver offline
User avatar
Posts: 7221
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: How do I get access back to my module?

howartp wrote:
My suspicion is:

/Library/Application Support/Perceptive Automation/Python2-includes/

Or …../Python3-includes/


Sent from my iPad using Tapatalk Pro


The latter might also work. But it's not obviously in the search path:

Code: Select all
>>> import sys
>>> sys.path
[
'/Library/Application Support/Perceptive Automation/Indigo 2022.1/IndigoPluginHost3.app/Contents/Resources/PlugIns/InteractiveShell.indigoPlugin/Contents/Server Plugin',
'/Library/Application Support/Perceptive Automation/Indigo 2022.1/IndigoPluginHost3.app/Contents/Resources/PlugIns/InteractiveShell.indigoPlugin/Contents/Packages',
'/Applications/PyCharm.app/Contents/debug-eggs/pydevd-pycharm.egg', '
/Applications/PyCharm.app/Contents/debug-eggs/pycharm-debug.egg',
'/Library/Application Support/Perceptive Automation/Indigo 2022.1/IndigoPluginHost3.app/Contents/Resources/PlugIns',
'/Library/Application Support/Perceptive Automation/Python3-includes',
 '/Library/Frameworks/Python.framework/Versions/3.10/lib/python310.zip',
'/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10',
 '/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/lib-dynload',
'/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages']
Last edited by FlyingDiver on Mon Jun 20, 2022 11:55 am, edited 1 time in total.

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Mon Jun 20, 2022 11:52 am
FlyingDiver offline
User avatar
Posts: 7221
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: How do I get access back to my module?

Oops. It is. I missed it the first look.

Code: Select all
/Library/Application Support/Perceptive Automation/Python3-includes


That's the best place.

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Mon Jun 20, 2022 12:01 pm
jay (support) offline
Site Admin
User avatar
Posts: 18220
Joined: Mar 19, 2008
Location: Austin, Texas

Re: How do I get access back to my module?

FlyingDiver wrote:
Code: Select all
/Library/Application Support/Perceptive Automation/Python3-includes


That's the best place.


Correct. If you're still using Python 2:

Code: Select all
/Library/Application Support/Perceptive Automation/Python2-includes


Though that will only work until the next Indigo release.

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Wed Jun 22, 2022 10:53 am
wikner offline
Posts: 181
Joined: Nov 02, 2003

Re: How do I get access back to my module?

Thanks, everyone. I'll work on upgrading to Python 3 then put it in /Library/Application Support/Perceptive Automation/Python3-includes.

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 7 guests