Changed preferred paths to use PROGRAMDATA, /var, and /etc

This commit is contained in:
Joel Collins 2020-01-16 16:31:19 +00:00
parent 2227d38be2
commit feddcc546b
5 changed files with 112 additions and 42 deletions

View file

@ -12,8 +12,9 @@ from .capture import CaptureObject
from openflexure_microscope.utilities import entry_by_uuid
from openflexure_microscope.common.labthings_core.lock import StrictLock
from openflexure_microscope.paths import data_file_path
BASE_CAPTURE_PATH = os.path.join(os.path.expanduser("~"), "micrographs")
BASE_CAPTURE_PATH = data_file_path("micrographs")
TEMP_CAPTURE_PATH = os.path.join(BASE_CAPTURE_PATH, "tmp")

View file

@ -46,7 +46,7 @@ from .base import BaseCamera, CaptureObject
# Richard's fix gain
from .set_picamera_gain import set_analog_gain, set_digital_gain
from openflexure_microscope.config import settings_file_path
from openflexure_microscope.paths import settings_file_path
# MAIN CLASS