I am looking for something that is a crossbreed between exit() and return. Let's say I am importing the file below:
Code:
if variable:
print 'returning to main program'
# stop executing more code in this file
# and return to the main program
else:
pass
# more code goes here
print 'the rest of the code was executed'
Comment