docs: def getcwd(moduleName=None):
          """
          get current path either from the temp folder used by pyinstaller:
  
              * apps 'sys._MEIPASS' if packed with --onefile option
  
          or
  
              * os.getcwd()
          """
          try:
              p = PathStr(sys._MEIPASS)
              if moduleName is not None:
                  # pyinstaller create one temp folder
                  # to separate e.g. media directories from each package it is useful
                  # to build its file-tree like this /temp/[mainPackage]/
                  # to get the main package PathStr need a derived instance
                  return p.join(moduleName.split('.')[0])
              return p
          except AttributeError:
              return PathStr(os.getcwd())