0

I want to convert a .py file to a .exe file that would work on all devices (or just all desktops if all devices isn't possible).

I tried to use py2exe but that doesn't work because it doesnt take the .mp4 file with it.

import vlc

# Create an instance of the VLC player
instance = vlc.Instance("--no-xlib")
player = instance.media_player_new()

# Set the video as the media to play
media = instance.media_new("yaai.mp4")
player.set_media(media)

# Set the video to loop
player.set_fullscreen(True)
player.play()

# Run the event loop
while True:
    pass

The .mp4 file is in the same folder.

NielsNL
  • 39
  • 7

1 Answers1

1

You can do this with pyinstaller with add-data.

NielsNL
  • 39
  • 7