2 Replies - 650 Views - Last Post: 12 April 2014 - 09:34 AM Rate Topic: -----

#1 project21124   User is offline

  • D.I.C Head

Reputation: 5
  • View blog
  • Posts: 62
  • Joined: 02-February 14

PyInstall

Posted 11 April 2014 - 03:10 PM

I've successfully made a game written in pygame/python, and I want to create an exe from it.
I went through with PyInstall, and used the correct options(--onefile, --noconsole), and it runs fine on my computer, but when I tried on a computer without the files used in the game, the .exe failed.

Why is it doing this?!? I shouldn't have to provide image and music files just so an exe can work, should I?
Is This A Good Question/Topic? 0
  • +

Replies To: PyInstall

#2 andrewsw   User is offline

  • no more Mr Potato Head
  • member icon

Reputation: 6957
  • View blog
  • Posts: 28,696
  • Joined: 12-December 12

Re: PyInstall

Posted 12 April 2014 - 09:17 AM

I don't know much about this but it works on you computer because the images and music already exist on your computer. Building the exe itself doesn't do anything with the media, you have to package them with the exe.

This SO topic may help.
Was This Post Helpful? 0
  • +
  • -

#3 project21124   User is offline

  • D.I.C Head

Reputation: 5
  • View blog
  • Posts: 62
  • Joined: 02-February 14

Re: PyInstall

Posted 12 April 2014 - 09:34 AM

Ok, I guess I'll just give a .zip file... :/
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1