Skip to content

Commit

Permalink
ports/psoc6: Testing mtb paths.
Browse files Browse the repository at this point in the history
Signed-off-by: NikhitaR-IFX <Nikhita.Rajasekhar@infineon.com>
  • Loading branch information
NikhitaR-IFX committed Sep 11, 2023
1 parent 8b4b239 commit 5e0b781
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions ports/psoc6/boards/make-pins.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,17 +72,16 @@ def find_pin(self, cpu_pin_name):
return pin

def generate_pins_csv(self, pin_package_filename, pins_csv_filename):
current_directory = os.getcwd()
print("//Current directory: ", current_directory)
print("//List files: ", os.listdir(current_directory))
directory_name = "./mtb_shared/"

directory_name = "./mtb_shared/mtb-hal-cat1/"
try:
os.chdir(directory_name)
print(f"Changed to directory: {directory_name}")
except FileNotFoundError:
print(f"Directory not found: {directory_name}")
current_directory = os.getcwd()
print("//Current directory: ", current_directory)
print("//List files: ", os.listdir(current_directory))

# Read the header file
with open(pin_package_filename, "r") as file:
Expand Down

0 comments on commit 5e0b781

Please sign in to comment.