Skip to content

Commit

Permalink
set cwd
Browse files Browse the repository at this point in the history
  • Loading branch information
SKairinos committed Dec 28, 2023
1 parent 7a9aa64 commit e5bb478
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/scripts/python/handle_new_contributor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
17 changes: 17 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -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"
}
]
}

0 comments on commit e5bb478

Please sign in to comment.