xmpp-message-script.py 1013 B

123456789101112131415161718192021222324252627282930313233
  1. #!C:\Users\poliv\Desktop\pythoRestApi\rest_venv\Scripts\python.exe
  2. # EASY-INSTALL-ENTRY-SCRIPT: 'xmpppy==0.7.1','console_scripts','xmpp-message'
  3. import re
  4. import sys
  5. # for compatibility with easy_install; see #2198
  6. __requires__ = 'xmpppy==0.7.1'
  7. try:
  8. from importlib.metadata import distribution
  9. except ImportError:
  10. try:
  11. from importlib_metadata import distribution
  12. except ImportError:
  13. from pkg_resources import load_entry_point
  14. def importlib_load_entry_point(spec, group, name):
  15. dist_name, _, _ = spec.partition('==')
  16. matches = (
  17. entry_point
  18. for entry_point in distribution(dist_name).entry_points
  19. if entry_point.group == group and entry_point.name == name
  20. )
  21. return next(matches).load()
  22. globals().setdefault('load_entry_point', importlib_load_entry_point)
  23. if __name__ == '__main__':
  24. sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
  25. sys.exit(load_entry_point('xmpppy==0.7.1', 'console_scripts', 'xmpp-message')())