Skip to content

Commit

Permalink
profile.py refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
Obijuan committed Mar 17, 2024
1 parent 03daa39 commit 665216f
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions apio/profile.py
Original file line number Diff line number Diff line change
@@ -1,17 +1,14 @@
"""DOC: TODO"""

# -*- coding: utf-8 -*-
# -- This file is part of the Apio project
# -- (C) 2016-2019 FPGAwars
# -- Author Jesús Arroyo
# -- Licence GPLv2
"""Manage the apio profile file"""

import json
from pathlib import Path
import click
import semantic_version


from apio import util


Expand Down Expand Up @@ -76,10 +73,12 @@ def installed_version(self, name: str, version: str):
# -- Package not installed
return False

def check_exe_default(self):
"""DOC: todo"""
def check_exe_default(self) -> bool:
"""Check if the exe mode is 'default'"""

is_exe_default = self.config["exe"] == "default"

return self.config.get("exe", "") == "default"
return is_exe_default

def add_package(self, name, version):
"""DOC: todo"""
Expand Down

0 comments on commit 665216f

Please sign in to comment.