:returns: absolute path to where the job.ini is
767972
def input_dir(self):
        
        return os.path.abspath(os.path.dirname(self.inputs['job_ini']))
663342
def getSettingsPath() :
	""""""
	parser = SafeConfigParser()
	try :
		parser.read(os.path.normpath(pyGeno_SETTINGS_DIR+'/config.ini'))
		return parser.get('pyGeno_config', 'settings_dir')
	except :
		createDefaultConfigFile()
		return getSettingsPath()
930545
def has_job(self, job):
        
        job_key = self._job_key(job)
        return job_key in self._job_map
406301
def _get_path():
    """"""
    if _path:
        return _path[0]
    environ_paths = set(os.environ['PATH'].split(':'))
    environ_paths.add('/usr/local/bin')
    environ_paths.add('/usr/bin')
    _path.append(':'.join(environ_paths))
    logger.debug('PATH = %s', _path[-1])
    return _path[0]
847264
def rel_path(*file_path):
        '''
        
        '''
        if hasattr(sys, 'frozen'):
            if file_path[0] == '__file__':
                return sys.executable
            return os.path.join(os.path.dirname(sys.executable), *file_path)
        else:
            try:
                main_file = AppBuilder.main_file
            except AttributeError:
                # The first call setting up the instance
                main_file = inspect.stack()[1][1]
            if file_path[0] == '__file__':
                return os.path.realpath(main_file)
            return os.path.join(os.path.dirname(main_file), *file_path)
151812
def sonTraceRootPath():
    
    import sonLib.bioio
    i = os.path.abspath(sonLib.bioio.__file__)
    return os.path.split(os.path.split(os.path.split(i)[0])[0])[0]
1003679
def taskdir(self):
        
        return os.path.join(self.BASE, self.TAG, self.task_family)
983736
def _get_lua_path(self, name):
        
        parts = (os.path.dirname(os.path.abspath(__file__)), "lua", name)
        return os.path.join(*parts)
224582
public static Path getOutputPath(JobContext job) {
    String name = job.getConfiguration().get("mapred.output.dir");
    return name == null ? null: new Path(name);
  }
689918
def paths(self):
        """"""
        filename = '.mbed_cloud_config.json'
        return [
            # Global config in /etc for *nix users
            "/etc/%s" % filename,

            # Config file in home directory
            os.path.join(os.path.expanduser("~"), filename),

            # Config file in current directory
            os.path.join(os.getcwd(), filename),

            # Config file specified using environment variable
            os.environ.get(self.path_from_env_key)
        ]
578525
private static String getRelativePathFromOut(final File overflowingFile, final Job job) {
        final URI relativePath = URLUtils.getRelativePath(job.getInputFile(), overflowingFile.toURI());
        final File outputDir = job.getOutputDir().getAbsoluteFile();
        final File outputPathName = new File(outputDir, "index.html");
        final File finalOutFilePathName = resolve(outputDir, relativePath.getPath());
        final File finalRelativePathName = FileUtils.getRelativePath(finalOutFilePathName, outputPathName);
        File parentDir = finalRelativePathName.getParentFile();
        if (parentDir == null || parentDir.getPath().isEmpty()) {
            parentDir = new File(".");
        }
        return parentDir.getPath() + File.separator;
    }
347207
def get_nni_installation_path():
    ''' 
    '''
    def try_installation_path_sequentially(*sitepackages):
        '''Try different installation path sequentially util nni is found.
        Return None if nothing is found
        '''
        def _generate_installation_path(sitepackages_path):
            python_dir = get_python_dir(sitepackages_path)
            entry_file = os.path.join(python_dir, 'nni', 'main.js')
            if os.path.isfile(entry_file):
                return python_dir
            return None

        for sitepackage in sitepackages:
            python_dir = _generate_installation_path(sitepackage)
            if python_dir:
                return python_dir
        return None

    if os.getenv('VIRTUAL_ENV'):
        # if 'virtualenv' package is used, `site` has not attr getsitepackages, so we will instead use VIRTUAL_ENV
        # Note that conda venv will not have VIRTUAL_ENV
        python_dir = os.getenv('VIRTUAL_ENV')
    else:
        python_sitepackage = site.getsitepackages()[0]
        # If system-wide python is used, we will give priority to using `local sitepackage`--"usersitepackages()" given that nni exists there
        if python_sitepackage.startswith('/usr') or python_sitepackage.startswith('/Library'):
            python_dir = try_installation_path_sequentially(site.getusersitepackages(), site.getsitepackages()[0])
        else:
            python_dir = try_installation_path_sequentially(site.getsitepackages()[0], site.getusersitepackages())

    if python_dir:
        entry_file = os.path.join(python_dir, 'nni', 'main.js')
        if os.path.isfile(entry_file):
            return os.path.join(python_dir, 'nni')
    print_error('Fail to find nni under python library')
    exit(1)
572744
def get_temporary_scripts_path(self):
        
        result = None
        if len(self.config.temporary_scripts_path) > 0:
            if os.path.isdir(self.config.temporary_scripts_path):
                result = self.config.temporary_scripts_path
        return result
864743
def infile_path(self) -> Optional[PurePath]:
        
        if not self.__infile_path:
            return Path(self.__infile_path).expanduser()
        return None
629033
def attowiki_distro_path():
    
    attowiki_path = os.path.abspath(__file__)
    if attowiki_path[-1] != '/':
        attowiki_path = attowiki_path[:attowiki_path.rfind('/')]
    else:
        attowiki_path = attowiki_path[:attowiki_path[:-1].rfind('/')]
    return attowiki_path
262433
def project_job_trigger_path(cls, project, job_trigger):
        """"""
        return google.api_core.path_template.expand(
            "projects/{project}/jobTriggers/{job_trigger}",
            project=project,
            job_trigger=job_trigger,
        )
252548
def get_state_paths(cls, impl, working_dir):
        
        return super(BlockstackDB, cls).get_state_paths(impl, working_dir) + [
                os.path.join(working_dir, 'atlas.db'), 
                os.path.join(working_dir, 'subdomains.db'),
                os.path.join(working_dir, 'subdomains.db.queue')
            ]