play.py 1012 B

123456789101112131415161718192021222324252627282930313233343536
  1. # THIS IS A SOURCE CODE FILE FROM I'M NOT EVEN HUMAN THE GAME.
  2. # IT COULD BE USED IN A DIFFERENT PIECE OF SOFTWARE ( LIKE A
  3. # DIFFERENT GAME ), BUT IT WAS ORIGINALLY WRITTEN FOR I'M NOT
  4. # EVEN HUMAN THE GAME.
  5. # THE DEVELOPERS OF THE GAME ARE : (C) J.Y.AMIHUD, AYYZEE AND
  6. # OTHER CONTRIBUTORS. THIS AND OTHER FILES IN THIS GAME,
  7. # UNLESS SPECIFICALLY NOTED, COULD BE USED UNDER THE TERMS OF
  8. # GNU GENERAL PUBLIC LICENSE VERSION 3 OR ANY LATER VERSION.
  9. import os
  10. from modules import engine
  11. from modules import settings
  12. engine.run()
  13. # Making the installation of the game
  14. desktop = """[Desktop Entry]
  15. Name=I'm Not Even Human - The Game
  16. GenericName=Game
  17. Path="""+os.getcwd()+"""
  18. Exec=python3 play.py
  19. Icon="""+os.getcwd()+"""/icon.png
  20. Terminal=false
  21. Type=Application
  22. Categories=Games;"""
  23. desktop_file = settings.get_settings_folder("applications/")+"ImNotEvenHumanTheGame.desktop"
  24. try:
  25. o = open(desktop_file, "w")
  26. o.write(desktop)
  27. o.close()
  28. except:
  29. print("Unable to generate the .desktop file")