From e5bb478fbe87dfc3c22aadd7ddcdc628b31ea6bc Mon Sep 17 00:00:00 2001 From: SKairinos Date: Thu, 28 Dec 2023 17:01:25 +0000 Subject: [PATCH] set cwd --- .../scripts/python/handle_new_contributor.py | 6 +++++- .vscode/launch.json | 17 +++++++++++++++++ 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 .vscode/launch.json diff --git a/.github/scripts/python/handle_new_contributor.py b/.github/scripts/python/handle_new_contributor.py index 1e08a291..d06d19ed 100644 --- a/.github/scripts/python/handle_new_contributor.py +++ b/.github/scripts/python/handle_new_contributor.py @@ -146,7 +146,11 @@ def get_diff_line(): diff_line_index = original_line_start + original_line_count # Split contribution agreement into lines. - with open(CONTRIBUTING_FILE_NAME, "r", encoding="utf-8") as contributing: + with open( + f"../../../{CONTRIBUTING_FILE_NAME}", + "r", + encoding="utf-8", + ) as contributing: lines = contributing.read().splitlines() # Assert diff line is after the contributors header. diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 00000000..a56809b3 --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,17 @@ +{ + // Use IntelliSense to learn about possible attributes. + // Hover to view descriptions of existing attributes. + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + { + "name": "Python: Script", + "type": "python", + "request": "launch", + "program": "${file}", + "console": "integratedTerminal", + "justMyCode": true, + "cwd": "${workspaceFolder}/.github/scripts/python" + } + ] +} \ No newline at end of file