Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if __name__ == '__main__':
- # do something here
- if from_command_line?
- # do something here
- end
- if __FILE__ == $0
- # do stuff
- end
- if __FILE__ == $0
- Foo.run
- end
- if File.identical?(__FILE__, $0)
- Foo.run
- end
Add Comment
Please, Sign In to add comment