Any live links to download the backup plugin?
They all seem to be 404.
Since I upgraded to 7.2 the plugin still is backing up my old 7.0 folders, any way to change this?
Thanks!
import subprocess
subprocess.Popen("/usr/bin/zip -r /users/YOURID/indigodir.zip '/Library/Application Support/Perceptive Automation/Indigo 7.2' &",shell=True)
80 def return_indigo_path ( self ):
81 #
82 # Next Generation iws path calculation
83 #
84 # Uses the Indigo Server version to generate the IWS path
85 #
86 return r"/library/Application Support/Perceptive Automation/Indigo %s/" % (int(indigo.server.version[0]) )
return r"/library/Application Support/Perceptive Automation/Indigo %s/" % (str(indigo.server.version[:3]) )
indigo.server.getInstallFolderPath()
Ramias wrote:Just noticed this as I was checking a backup before attempting an upgrade to Mojave...
In the plugin folder for Indigo Backup, file plugin.py there is a function starting on line 80:
- Code: Select all
80 def return_indigo_path ( self ):
81 #
82 # Next Generation iws path calculation
83 #
84 # Uses the Indigo Server version to generate the IWS path
85 #
86 return r"/library/Application Support/Perceptive Automation/Indigo %s/" % (int(indigo.server.version[0]) )
Line 86 is only returning the first character (the "0" in the brackets) of Indigo Version, which is now 7.2.0 and using that for the path.
Changing that bracket to return the first three characters of the version string with a "[:3]" allows it to get the 7.2 and use that for the correct path to backup.
But that makes it no longer an int so need to change that to a str.
so make line 86 look like this:
- Code: Select all
return r"/library/Application Support/Perceptive Automation/Indigo %s/" % (str(indigo.server.version[:3]) )
jay (support) wrote:Or just use the built-in server method:
- Code: Select all
indigo.server.getInstallFolderPath()
Which will always work...
bschollnick2 wrote:jay (support) wrote:Or just use the built-in server method:
- Code: Select all
indigo.server.getInstallFolderPath()
Which will always work...
Well, we learn something every day. I'll have to take a look and update my code...
Users browsing this forum: No registered users and 2 guests