クリップボードにコピーしました!

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

コメントを残す

メールアドレスが公開されることはありません。 が付いている欄は必須項目です

©︎ 2025-2026 todo