Folder system: Difference between revisions

From SweepMe! Wiki
Jump to navigation Jump to search
No edit summary
Line 11: Line 11:
=== Key-Strings ===
=== Key-Strings ===


* "TEMP" = tempfolder in SweepMe! installation folder
* "TEMP" = tempfolder in local OS user folder
* "PUBLIC" = public SweepMe! folder of public operation system user
* "PUBLIC" = public SweepMe! folder of public operation system user
* "ROAMING" = SweepMe! folder in roaming folder of current operation system user
* "ROAMING" = SweepMe! folder in roaming folder of current operation system user
Line 19: Line 19:
* "CUSTOM"= Custom files in PUBLIC
* "CUSTOM"= Custom files in PUBLIC
* "EXTLIBS" = External libraries such as dlls in PUBLIC
* "EXTLIBS" = External libraries such as dlls in PUBLIC
* "DATA" =  measurement data folder

Revision as of 16:20, 24 January 2023

SweepMe creates several folders at the first start which can be retrieved via the FolderManager:

import FolderManager
FoMa = FolderManager.FolderManager()
print(FoMa.get_path("TEMP"))

The above example initializes the FolderManager and prints out the path to the temp folder. Each folder is related to a certain string.

Key-Strings

  • "TEMP" = tempfolder in local OS user folder
  • "PUBLIC" = public SweepMe! folder of public operation system user
  • "ROAMING" = SweepMe! folder in roaming folder of current operation system user
  • "MAIN" = SweepMe!.exe installation folder
  • "CUSTOMDEVICES" = DeviceClasses in PUBLIC
  • "CALIBRATIONS" = Calibration folder in PUBLIC
  • "CUSTOM"= Custom files in PUBLIC
  • "EXTLIBS" = External libraries such as dlls in PUBLIC
  • "DATA" = measurement data folder