Re: [Tutor] 'Installing' Python at runtime? (Civilization)
a common approach is to embed python in a compiled binary On Thu, Feb 3, 2011 at 9:18 PM, Steven D'Aprano wrote: > Alan Gauld wrote: >> >> "C.Y. Ruhulessin" wrote >> >>> When I load up Civilization IV, a Firaxis game, the loading screen tells >>> me >>> "Loading Python". >>> >>> However, I can't seem to find out where it installs python >> >> It probably doesn't actually install Python it is simply loading >> the interpreter into memory. > > That's what it says... it says "Loading Python", not installing it. It would > include a version of Python when the game was installed, possibly embedded > in the Civilization game itself. *Installing* Python each time you start the > game would be silly. > > To find out where it is installed, use your operating system's Find Files > utility to search for a file named "python". If you don't find it, that > could mean they have renamed it something else, or it is embedded in the > game where you can't get to it. > > >> It probably uses Python as its macro language for configuration >> or customisation. To execute those scripts it will need to load >> a DLL containing the interpreter code. I don't know for sure >> but I'd guess that's what it means. > > Many games use Python as a scripting language. (Lua is another popular > choice.) The multiplayer game EVE maintains a special port of Python called > "stackless". > > > -- > Steven > > ___ > Tutor maillist - Tutor@python.org > To unsubscribe or change subscription options: > http://mail.python.org/mailman/listinfo/tutor > ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] 'Installing' Python at runtime? (Civilization)
Alan Gauld wrote: "C.Y. Ruhulessin" wrote When I load up Civilization IV, a Firaxis game, the loading screen tells me "Loading Python". However, I can't seem to find out where it installs python It probably doesn't actually install Python it is simply loading the interpreter into memory. That's what it says... it says "Loading Python", not installing it. It would include a version of Python when the game was installed, possibly embedded in the Civilization game itself. *Installing* Python each time you start the game would be silly. To find out where it is installed, use your operating system's Find Files utility to search for a file named "python". If you don't find it, that could mean they have renamed it something else, or it is embedded in the game where you can't get to it. It probably uses Python as its macro language for configuration or customisation. To execute those scripts it will need to load a DLL containing the interpreter code. I don't know for sure but I'd guess that's what it means. Many games use Python as a scripting language. (Lua is another popular choice.) The multiplayer game EVE maintains a special port of Python called "stackless". -- Steven ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] 'Installing' Python at runtime? (Civilization)
"C.Y. Ruhulessin" wrote When I load up Civilization IV, a Firaxis game, the loading screen tells me "Loading Python". However, I can't seem to find out where it installs python It probably doesn't actually install Python it is simply loading the interpreter into memory. It probably uses Python as its macro language for configuration or customisation. To execute those scripts it will need to load a DLL containing the interpreter code. I don't know for sure but I'd guess that's what it means. -- Alan Gauld Author of the Learn to Program web site http://www.alan-g.me.uk/ ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] 'Installing' Python at runtime? (Civilization)
Thanks, will check it out! 2011/2/3 Noah Hall > On Thu, Feb 3, 2011 at 11:11 AM, C.Y. Ruhulessin > wrote: > > For an application that I am designing, i'd like to achieve the same > > functionality, so the end users don't have to bother installing Python > > themselves. > > Can anybody shed their lights on how one would program this? > > kind regards, > > > There are applications, such as http://www.py2exe.org/ and > http://www.pyinstaller.org/ that you can use to achieve the same > thing. > ___ > Tutor maillist - Tutor@python.org > To unsubscribe or change subscription options: > http://mail.python.org/mailman/listinfo/tutor > ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] 'Installing' Python at runtime? (Civilization)
On Thu, Feb 3, 2011 at 11:11 AM, C.Y. Ruhulessin wrote: > For an application that I am designing, i'd like to achieve the same > functionality, so the end users don't have to bother installing Python > themselves. > Can anybody shed their lights on how one would program this? > kind regards, There are applications, such as http://www.py2exe.org/ and http://www.pyinstaller.org/ that you can use to achieve the same thing. ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor