Skip to content

Commit

Permalink
Removed DEBUG messages
Browse files Browse the repository at this point in the history
  • Loading branch information
Obijuan committed Oct 13, 2023
1 parent f619b2a commit b0827f9
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions apio/managers/system.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,23 +115,23 @@ def get_ftdi_devices(self):
def _run_command(self, command, silent=False):
result = {}

print(f"(DEBUG) Run Command: {command}")
#print(f"(DEBUG) Run Command: {command}")

# From apio >= 0.7.0, the system tools are locate in the
# oss-cad-suite package instead of the system package
# So first let's try to execute them from there

# -- Get the package base dir
system_base_dir = util.get_package_dir("tools-oss-cad-suite")
print(f"(DEBUG) System_base_dir: {system_base_dir}")
#print(f"(DEBUG) System_base_dir: {system_base_dir}")

# -- Get the folder were the binary file is locateds
system_bin_dir = Path(system_base_dir) / "bin"
print(f"(DEBUG) System bin dir: {system_bin_dir}")
#print(f"(DEBUG) System bin dir: {system_bin_dir}")

# -- Get the executable filename
executable_file = system_bin_dir / (command + self.ext)
print(f"(DEBUG) Executable file: {executable_file}")
#print(f"(DEBUG) Executable file: {executable_file}")

# -- Set the stdout and stderr for executing the command
on_stdout = None if silent else self._on_stdout
Expand Down
4 changes: 2 additions & 2 deletions apio/profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ def __init__(self):
# -- Get the profile path
self._profile_path = str(Path(util.get_home_dir()) / "profile.json")

print(f"(DEBUG) Profile path: {self._profile_path}")
print(f"(DEBUG) Home_dir: {util.get_home_dir()}")
# print(f"(DEBUG) Profile path: {self._profile_path}")
# print(f"(DEBUG) Home_dir: {util.get_home_dir()}")

# -- Read the profile from file
self.load()
Expand Down
6 changes: 3 additions & 3 deletions apio/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -359,9 +359,9 @@ def set_env_variables(base_dir, bin_dir):
# print(f" get_bin_dir(): {get_bin_dir()}")

# -- DEBUG
print()
print(f"PATH: {os.environ['PATH']}")
print()
# print()
# print(f"PATH: {os.environ['PATH']}")
# print()

# Add other environment variables

Expand Down

0 comments on commit b0827f9

Please sign in to comment.