William Leader
unread,Jan 23, 2011, 3:55:18 PM1/23/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to MyMedia Roku Developers
Hello,
I myself had installed python somewhere other than the default C:
\Python26 directory, and got bit by this myself. So I've come up with
an improved mymedia.bat that is a bit more user friendly and that
fails more gracefully and informs the user what the problem is when
python can not be found. It also leaves the window open if python
returns an error code. This is my creation and I agree to allow my
contributions to be added to the Roku Media Server in any way seen fit
by its maintainers.
@echo off
REM if python is not installed to the default location,
REM the next line must be modified.
set python=C:\Python26\python.exe
IF EXIST "%python%" GOTO START
ECHO Python was not found at %python%.
ECHO Please modify the file mymedia.bat to set the location where
Python is
ECHO installed on this computer.
pause
exit
:START
ECHO Starting MyMedia Server.
cd server
"%python%" mymedia.py2
IF NOT %ERRORLEVEL%==0 pause