play.py 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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. #!/usr/bin/python
  10. import os
  11. from modules import engine
  12. from modules import settings
  13. engine.run()
  14. # Making the installation of the game
  15. desktop = """[Desktop Entry]
  16. Name=I'm Not Even Human - The Game
  17. GenericName=Game
  18. Path="""+os.getcwd()+"""
  19. Exec=python3 play.py
  20. Icon="""+os.getcwd()+"""/icon.png
  21. Terminal=false
  22. Type=Application
  23. Categories=Games;"""
  24. desktop_file = settings.get_settings_folder("applications/")+"ImNotEvenHumanTheGame.desktop"
  25. try:
  26. o = open(desktop_file, "w")
  27. o.write(desktop)
  28. o.close()
  29. except:
  30. print("Unable to generate the .desktop file")