Python wrong __name__ == __main__ evaluation

Sysprogs forums Forums VisualGDB Python wrong __name__ == __main__ evaluation

This topic contains 1 reply, has 2 voices, and was last updated by  support 5 months, 4 weeks ago.

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



    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.




    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.