Update: modifying sys.path to include sorts folder

This commit is contained in:
Jeonghyun Min 2024-11-07 09:14:06 +08:00
parent 4c78b50509
commit 3a0f9e67a7

View File

@ -13,9 +13,14 @@ so it can be used to see how long each sorting algorithm
takes to complete the sorting process. takes to complete the sorting process.
""" """
import os
import random import random
import sys
import time import time
# Modify sys.path to include the 'sorts' directory by adding the parent directory
sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), "..")))
from sorts.binary_insertion_sort import binary_insertion_sort from sorts.binary_insertion_sort import binary_insertion_sort
from sorts.bubble_sort import bubble_sort_iterative from sorts.bubble_sort import bubble_sort_iterative
from sorts.bucket_sort import bucket_sort from sorts.bucket_sort import bucket_sort