Changeset 772

Show
Ignore:
Timestamp:
12/23/07 13:42:21 (15 years ago)
Author:
arnonym
Message:

Some small things:

  • install the ui-files too. Don't know if they are needed...
  • Be a bit more verbose and userfriendly(?) on the commandline. This should all be done with some nice gui to be really userfriendly.
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/libffado/support/mixer/ffadomixer.in

    r770 r772  
    66import runpy 
    77 
    8 print """FFADO generic mixer app 
     8print """FFADO generic mixer starter 
    99 Copyright 2007 Arnold Krille, Pieter Palmers 
    1010 Licensed under the GPL v2 and v3. 
     
    1212 
    1313myname = sys.argv[0].split("/")[-1].split("_")[-1] 
    14 #print "My name is " + myname 
    1514 
    1615mixerapps = $MIXERAPPS 
    1716 
    1817if not myname in mixerapps: 
    19         print "Have to figure which app to start by commandline..." 
     18        print "Have to figure which mixer to start by commandline..." 
    2019 
    2120        parser = OptionParser() 
     
    2625        myname = options.mixer 
    2726 
    28 print "Will start app '"+myname+"'" 
     27if not myname or len(myname) == 0: 
     28        print "No mixer selected. Try the option \"-m <mixer>\" with <mixer> being one of " + str( mixerapps ) 
     29        exit( 1 ) 
    2930 
    30 if len(myname) == 0: 
    31         exit( 1 ) 
     31print "Will start mixer '"+myname+"'" 
    3232 
    3333sys.path.append( "$PYTHONDIR" ) 
    3434 
    35 #print sys.path 
    36  
    3735runpy.run_module( "mixer_"+myname, run_name="__main__" ) 
    3836 
     37print "Finished." 
     38 
  • trunk/libffado/support/mixer/SConscript

    r770 r772  
    4141                        e.PyUIC( source=app+".ui", target=app+"ui.py" ) 
    4242                        e.Install( "$PYTHONDIR", app+"ui.py" ) 
     43                        e.Install( "$PYTHONDIR", app+".ui" ) 
    4344                e.Install( "$PYTHONDIR", app+".py" ) 
    4445 
     
    5051                e.InstallAs( os.path.join( e['bindir'], "ffado"+app ), "ffadomixer" ) 
    5152 
    52