Python wrong __name__ == __main__ evaluation

Sysprogs forums Forums VisualGDB Python wrong __name__ == __main__ evaluation

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #27036
    hf
    Participant

    Hello,

    we try to use also visualgdb for debugging a python embedded  project. The problem ist currently the expression

    __name__ == __main__

    expression which is wrong.

    If i call the script on the pi directly it is processed correct.

    Over visualgdb i get the value “<run_path>” from the __name__ variable.

     

    Any hints?

     

    at the moment i use the workaround with

    if __name__ == “<run_path>”:

     

    but is can’t be there after debugging the code.

    #27037
    support
    Keymaster

    Hi,

    We would be happy to help you, however it looks like your support period has expired. Please renew it via this page and we will help you resolve this issue.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.