2010-10-07, 21:06
I know that in MS-Windows (all versions) you can put an autoexec.py script in your user data folder that would get executed upon startup. However, the only thing that I am having slight problem with is how to point to a file in Linux. I know there is probably some easy way of doing it. So if anybody can help me I will be very appreciative. The following is the code that I want to use in my distro:
Windows Version:
I need to figure out how to change the player.play to point to a Linux file (instead of a windows file.) Here is the location of the file on the Linux system:
I have tried a hundred ways to format the file name but it still won't launch in Linux. Thank you in advanced.
Windows Version:
Code:
import xbmc
player = xbmc.Player()
player.play("D:\\XBMC\\Video\\MiscFilms\\intro.mp4")
I need to figure out how to change the player.play to point to a Linux file (instead of a windows file.) Here is the location of the file on the Linux system:
Code:
/home/home/Documents/intro.wmv
I have tried a hundred ways to format the file name but it still won't launch in Linux. Thank you in advanced.