mirror of
https://github.com/krahets/hello-algo.git
synced 2025-07-06 22:34:18 +08:00
Improve Python code for importing modules.
This commit is contained in:
@ -4,10 +4,11 @@ Created Time: 2023-02-23
|
||||
Author: Krahets (krahets@163.com)
|
||||
"""
|
||||
|
||||
import sys, os.path as osp
|
||||
import sys
|
||||
from pathlib import Path
|
||||
|
||||
sys.path.append(osp.dirname(osp.dirname(osp.abspath(__file__))))
|
||||
from modules import *
|
||||
sys.path.append(str(Path(__file__).parent.parent))
|
||||
from modules import Vertex, vets_to_vals, vals_to_vets
|
||||
from graph_adjacency_list import GraphAdjList
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user