f87f5f25cf
I have a toggle_state() function to toggle the server and save the state for the next session.
36 lines
470 B
Python
36 lines
470 B
Python
# Bryan Schumaker (8/7/2010)
|
|
|
|
import version
|
|
import prefs
|
|
import audio
|
|
import path
|
|
|
|
import sources
|
|
import controls
|
|
import server
|
|
|
|
from path import lastfm
|
|
#plugin = None
|
|
|
|
|
|
def startup():
|
|
# global plugin
|
|
# import plugin
|
|
|
|
# plugin.load_all()
|
|
prefs.enable_save()
|
|
parse_user_input()
|
|
|
|
|
|
def shutdown():
|
|
audio.shutdown()
|
|
server.shutdown()
|
|
## import plugin
|
|
## plugin.quit()
|
|
|
|
|
|
def parse_user_input():
|
|
import sys
|
|
for item in sys.argv[1:]:
|
|
path.files.universal_open(item)
|