<reponame>xmyqsh/bark<filename>tools/debug/debug_settings.py
import sys
import os



cwd = os.getcwd()
workspace_folder = cwd
repo_paths = ["bark_project", "benchmark_database", "com_github_interaction_dataset_interaction_dataset", \
        "com_github_interaction_dataset_interaction_dataset/python"]

executed_file = sys.argv[0]
if executed_file.count("bark") == 2:
  tmp = "bazel-bin/bark".join(executed_file.rsplit("bark",1))
elif executed_file.count("tools") == 1:
  tmp = "bazel-bin/tools".join(executed_file.rsplit("tools",1))
tmp = tmp.replace("python_wrapper/", "bazel-bin/python_wrapper/")
runfiles_dir = tmp.replace(".py", ".runfiles")

sys.path.append(runfiles_dir)
for repo in repo_paths:
    full_path = os.path.join(runfiles_dir, repo)
    print("adding python path: {}".format(full_path))
    sys.path.append(full_path)
import sys
import os



cwd = os.getcwd()
workspace_folder = cwd
repo_paths = ["bark_project", "benchmark_database", "com_github_interaction_dataset_interaction_dataset", \
        "com_github_interaction_dataset_interaction_dataset/python"]

executed_file = sys.argv[0]
if executed_file.count("bark") == 2:
  tmp = "bazel-bin/bark".join(executed_file.rsplit("bark",1))
elif executed_file.count("tools") == 1:
  tmp = "bazel-bin/tools".join(executed_file.rsplit("tools",1))
tmp = tmp.replace("python_wrapper/", "bazel-bin/python_wrapper/")
runfiles_dir = tmp.replace(".py", ".runfiles")

sys.path.append(runfiles_dir)
for repo in repo_paths:
    full_path = os.path.join(runfiles_dir, repo)
    print("adding python path: {}".format(full_path))
    sys.path.append(full_path)