def _init_from_appdir(self, appdir_or_exe):
        if os.path.isfile(appdir_or_exe):
            self.appdir = appdir_from_executable(appdir_or_exe)
            vsdir = self._get_versions_dir()
            vdir = appdir_or_exe[len(vsdir):].split(os.sep)[1]
            details = split_app_version(vdir)
            self.name, self.active_version, self.platform = details
        else:
            self.active_version = None
            self.appdir = appdir_or_exe
        self.appdir = os.path.abspath(self.appdir)
Extension point to override the initial logic of Esky initialisation.
dataset/ETHPy150Open cloudmatrix/esky/esky/__init__.py/Esky._init_from_appdir