Server Log File Path changes every release

Posted on
Sat Feb 27, 2021 4:10 pm
dawson1331 offline
Posts: 32
Joined: Oct 22, 2012

Server Log File Path changes every release

I have a script that accesses the Indigo Server log file. With each new release of Indigo I have to change the variable that points to new path - which I forget to do. What is the best way to get around the need to edit my script? Example: filename = "/Library/Application Support/Perceptive Automation/Indigo 7.5/Logs/indigo_log.txt"
Thanks,
Bill

Posted on
Sat Feb 27, 2021 4:54 pm
FlyingDiver offline
User avatar
Posts: 7215
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Server Log File Path changes every release

What kind of script is this? Shell? Embedded Python? If it's an embedded Python, this should work:

Code: Select all
import indigo

log = indigo.server.getInstallFolderPath() + "/Logs/indigo_log.txt"

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

Posted on
Sat Feb 27, 2021 9:57 pm
dawson1331 offline
Posts: 32
Joined: Oct 22, 2012

Re: Server Log File Path changes every release

Thanks for the advice and quick reply. It worked perfectly.

Posted on
Sun Feb 28, 2021 7:31 am
kw123 offline
User avatar
Posts: 8363
Joined: May 12, 2013
Location: Dallas, TX

Re: Server Log File Path changes every release

The option to set the data / sql path freely was added because someone had his sql setup in a completely different place.

I am thinking about setting it to the default and only if overwritten it is changed.


Sent from my iPhone using Tapatalk

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 5 guests