mirror of
https://github.com/TheAlgorithms/Python.git
synced 2024-11-23 21:11:08 +00:00
Update: modifying sys.path to include sorts folder
This commit is contained in:
parent
4c78b50509
commit
3a0f9e67a7
|
@ -13,9 +13,14 @@ so it can be used to see how long each sorting algorithm
|
|||
takes to complete the sorting process.
|
||||
"""
|
||||
|
||||
import os
|
||||
import random
|
||||
import sys
|
||||
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.bubble_sort import bubble_sort_iterative
|
||||
from sorts.bucket_sort import bucket_sort
|
||||
|
|
Loading…
Reference in New Issue
Block a user