project_root_path = subprocess.run(f”echo \”$(dirname \”$(dirname \”$(readlink -f \”{__file__}\”)\”)\”)\””, shell=True, capture_output=True, text=True).stdout.strip()かproject_root_path = subprocess.run(f’echo “$(dirname “$(dirname “$(readlink -f “{__file__}”)”)”)”‘, shell=True, capture_output=True, text=True).stdout.strip()を使用することで、pythonのtranslateフォルダ内でプロジェクトのルートパスを取得できた
updated: 2025/12/02
created: 2025/12/02