Advertisement
Guest User

Untitled

a guest
Apr 4th, 2025
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.69 KB | None | 0 0
  1. # -*- coding: utf-8 -*-
  2.  
  3. from __future__ import print_function
  4. from __future__ import division
  5. from __future__ import unicode_literals
  6.  
  7. if False:
  8.     """
  9. # "
  10. cat >/dev/null <<SHELL_TRAP
  11.    """
  12.     _DUMMY = 1
  13. else:
  14.     #
  15.     #
  16.     #
  17.     # REST OF THE SCRIPT HERE, INDENTED FOR THE ELSE BLOCK
  18.     #
  19.     #
  20.     #
  21.     pass
  22. # finally
  23.  
  24. exit(0)
  25. """
  26. SHELL_TRAP
  27. then
  28. echo "--------------------------------------------------------------------------"
  29. echo "You have tried to execute this script directly, which is not possible."
  30. echo "Please run the script again, using python $0 (arguments)"
  31. echo "--------------------------------------------------------------------------"
  32. fi
  33. exit 1
  34. """
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement