Python game to another computer?!

Hey all, i’ve made a game (well its not complete) and I wanted to show it to a friend of mine, (I am using 2.49 for games) , inside this game I have a python script that inludes this line :

import random

when I was testing the game everything seems fine, then I made File > external data > pack into .blend file and then I saved runtime inside a folder
I took this folder (yes I did the thing with the dll files) but when I run the game on my friend’s computer at console I saw the message random is not detected or something like that (I dont remember exactly) but I guess thats because he doest have python installed in his computer,
well the simple way is to install python on his computer but if one day I finish the game and make it free to download for everyone, I cant force everyone to install python, so I was wondering how I can make the random to be including somehow inside the folder or for any other library I want to import.

thx a lot ;D

when you make the game, include the relevant .py’s in the same directory as the exe to do so.

hmmm that was helpful, I didnt know random is a file inside python folder hehe
I will try it today and I will tell u

if you have to import it, it’s a file

Copy your whole C:\Python2X\Lib folder so that it sits alongside your runtime. This why your runtime will have full access to the Python standard library.