OpenChemistry / tomviz

Cross platform, open source application for the processing, visualization, and analysis of 3D tomography data
https://tomviz.org/
BSD 3-Clause "New" or "Revised" License
325 stars 87 forks source link

Save the description.json alongside the script #2201

Closed psavery closed 3 years ago

psavery commented 3 years ago

If the user clicks the "Save Script" button below an operator's python script, and then chooses to save the script somewhere, save the description.json file next to it (where the filename will be the script name with a .json extension) it if the following conditions are true:

  1. The JSON description for the operator is not empty
  2. The file does not already exist, or the user says "yes, overwrite".
  3. We have permission to write the file