Mordicus.Core.Helpers.FolderHandler module

class Mordicus.Core.Helpers.FolderHandler.FolderHandler(scriptAddress)[source]

Bases: object

Class containing on object for switching between two folders: the one from which the script is launched and the one containing the script.

scriptFolder

address of the folder containing the executed script

Type

str

executionFolder

address of the folder from which the script is executed

Type

str

SwitchToExecutionFolder()[source]

Changes working directory to self.executionFolder

SwitchToScriptFolder()[source]

Changes working directory to self.scriptFolder