j.dirs
- /opt/jumpscale7/lib/JumpScale/core/Dirs.py
- Properties
- cfgDir
- pidDir
- codeDir
- binDir
- appDir
- baseDir
- libDir
- gitConfigDir
- logDir
- varDir
- libExtDir
- jsLibDir
- tmpDir
Methods
Utility class to configure and store all relevant directory paths
def addProtectedDir
arguments
def amInGitConfigRepo
arguments
return parent path where .git is or None when not found
def checkInProtectedDir
arguments
def createGitConfigRepo
arguments
def getHrdDir
arguments
def getPathOfRunningFunction
arguments
def init
arguments
Initializes all the configured directories if needed
If a folder attribute is None, set its value to the corresponding
default path.
@returns: Initialization success
@rtype: bool
def isGitConfigRepo
arguments
def loadProtectedDirs
arguments
def removeProtectedDir
arguments
def replaceTxtDirVars
arguments
replace $base,$vardir,$cfgDir,$bindir,$codedir,$tmpdir,$logdir,$appdir with props of this
class