VSCode运行Python程序提示:ModuleNotFoundError,VSCode未找到导入的自定义的模块,只能手动向sys.path中把项目路径添加,但十分麻烦;Pycharm运行时会自动把项目经路添加至sys.path,开发者无需这般麻烦操作 #8723
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Triage "info-needed" label | |
on: | |
issue_comment: | |
types: [created] | |
env: | |
TRIAGERS: '["karrtikr","karthiknadig","paulacamargo25","eleanorjboyd", "brettcannon","anthonykim1"]' | |
permissions: | |
issues: write | |
jobs: | |
add_label: | |
runs-on: ubuntu-latest | |
if: contains(github.event.issue.labels.*.name, 'triage-needed') && !contains(github.event.issue.labels.*.name, 'info-needed') | |
steps: | |
- name: Checkout Actions | |
uses: actions/checkout@v4 | |
with: | |
repository: 'microsoft/vscode-github-triage-actions' | |
ref: stable | |
path: ./actions | |
- name: Install Actions | |
run: npm install --production --prefix ./actions | |
- name: Add "info-needed" label | |
uses: ./actions/python-triage-info-needed | |
with: | |
triagers: ${{ env.TRIAGERS }} | |
action: 'add' | |
token: ${{secrets.GITHUB_TOKEN}} | |
remove_label: | |
if: contains(github.event.issue.labels.*.name, 'info-needed') && contains(github.event.issue.labels.*.name, 'triage-needed') | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Actions | |
uses: actions/checkout@v4 | |
with: | |
repository: 'microsoft/vscode-github-triage-actions' | |
ref: stable | |
path: ./actions | |
- name: Install Actions | |
run: npm install --production --prefix ./actions | |
- name: Remove "info-needed" label | |
uses: ./actions/python-triage-info-needed | |
with: | |
triagers: ${{ env.TRIAGERS }} | |
action: 'remove' | |
token: ${{secrets.GITHUB_TOKEN}} |