def set_nim_project(st_project, nim_path):
    if st_project is not None:
        with open(st_project, 'r+') as project_file:
            data = json.loads(project_file.read())
            data['settings']['nim-project'] = nim_path.replace('\\', '/')

            project_file.seek(0)
            project_file.truncate()
            project_file.write(
                json.dumps(data, indent=4)
            )
Associate a nim project file with the current sublime project.
dataset/ETHPy150Open Varriount/NimLime/nimlime_core/utils/project.py/set_nim_project