Skip to content

Commit

Permalink
Fix python import path of other tools
Browse files Browse the repository at this point in the history
  • Loading branch information
Che-Yu Wu committed May 2, 2023
1 parent eb885ed commit 177a3da
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
7 changes: 6 additions & 1 deletion build_tools/benchmarks/diff_local_benchmarks.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,13 @@
--target=/path/to/target_benchmarks.json
"""

import argparse
import pathlib
import sys

# Add build_tools python dir to the search path.
sys.path.insert(0, str(pathlib.Path(__file__).parent.with_name("python")))

import argparse

from typing import Optional

Expand Down
7 changes: 6 additions & 1 deletion build_tools/benchmarks/upload_benchmarks_to_dashboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,15 @@
python3 upload_benchmarks.py /path/to/benchmark/json/file
"""

import pathlib
import sys

# Add build_tools python dir to the search path.
sys.path.insert(0, str(pathlib.Path(__file__).parent.with_name("python")))

import argparse
import json
import os
import pathlib
import requests

from typing import Any, Dict, Optional, Union
Expand Down

0 comments on commit 177a3da

Please sign in to comment.