Page 1 of 1
Server Log File Path changes every release
Posted:
Sat Feb 27, 2021 4:10 pm
by dawson1331
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
Re: Server Log File Path changes every release
Posted:
Sat Feb 27, 2021 4:54 pm
by FlyingDiver
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"
Re: Server Log File Path changes every release
Posted:
Sat Feb 27, 2021 9:57 pm
by dawson1331
Thanks for the advice and quick reply. It worked perfectly.
Re: Server Log File Path changes every release
Posted:
Sun Feb 28, 2021 7:31 am
by kw123
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