Folder system

From SweepMe! Wiki
Revision as of 22:54, 14 March 2019 by Afischer (talk | contribs) (Created page with "SweepMe creates several folder at the first start which can be retrieved via the FolderManager {{syntaxhighlight|lang=python|code= import FolderManager FoMa = FolderManager....")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

SweepMe creates several folder 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 SweepMe! installation 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