Skip to content

Commit 3a0f9e6

Browse files
author
Jeonghyun Min
committed
Update: modifying sys.path to include sorts folder
1 parent 4c78b50 commit 3a0f9e6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

sorts/stopwatch_sort.py

+5
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,14 @@
1313
takes to complete the sorting process.
1414
"""
1515

16+
import os
1617
import random
18+
import sys
1719
import time
1820

21+
# Modify sys.path to include the 'sorts' directory by adding the parent directory
22+
sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), "..")))
23+
1924
from sorts.binary_insertion_sort import binary_insertion_sort
2025
from sorts.bubble_sort import bubble_sort_iterative
2126
from sorts.bucket_sort import bucket_sort

0 commit comments

Comments
 (0)