Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # -*- coding: utf-8 -*-
- from __future__ import print_function
- from __future__ import division
- from __future__ import unicode_literals
- if False:
- """
- # "
- cat >/dev/null <<SHELL_TRAP
- """
- _DUMMY = 1
- else:
- #
- #
- #
- # REST OF THE SCRIPT HERE, INDENTED FOR THE ELSE BLOCK
- #
- #
- #
- pass
- # finally
- exit(0)
- """
- SHELL_TRAP
- then
- echo "--------------------------------------------------------------------------"
- echo "You have tried to execute this script directly, which is not possible."
- echo "Please run the script again, using python $0 (arguments)"
- echo "--------------------------------------------------------------------------"
- fi
- exit 1
- """
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement