[Python] why won't Pycharm accept my file location for Pythonpath?

Discussão em 'Python' iniciado por Stack, Fevereiro 13, 2025.

  1. Stack

    Stack Membro Participativo

    I am configuring my robot framework on a project level and am trying to enter my project file location as the pythonpath. Next to the field is this text: Entries to be added to the PYTHONPATH (used when resolving resources and imports and automatically passed to the launch config as --pythonpath entries). (i.e.: ["c:/my/pro/src"]) Note: expected format: JSON Array

    the location I am putting in the field is this: ["C:\Users(myname)\PycharmProjects\test-framework"]

    I'm getting this error: com.google.gson.JsonSyntaxException: coml.google.gson.stream.MalformedJsonException:Invalid escape sequence at line 1 column 7 path $[0]

    What am I doing wrong?

    Continue reading...

Compartilhe esta Página