Tuesday, 27 August 2013

Visual Studio 2012 Python main() behaviour

Visual Studio 2012 Python main() behaviour

I am using Python Tools for Visual Studio
def testFunc():
print('Called from test func')
import msvcrt as m
testFunc()
m.getch()
will wait for command line input. But,
import msvcrt as m
def wait():
m.getch()
def main():
testFunc()
wait()
won't wait till command line input from user. Setting break point isn't
working either.
Am I doing something wrong here ?

No comments:

Post a Comment