Changeset 5982


Ignore:
Timestamp:
Oct 3, 2017, 12:58:13 PM (2 years ago)
Author:
hectorgh
Message:

adding postactions functionality

Location:
lliurex-moving-core/trunk/fuentes
Files:
2 added
2 edited

Legend:

Unmodified
Added
Removed
  • lliurex-moving-core/trunk/fuentes/setup.py

    r3102 r5982  
    1515        package_dir      = {'': 'src'},
    1616        packages         = ['net','net.Lliurex','net.Lliurex.Classroom','net.Lliurex.Classroom.MovingProfiles'],
    17         data_files       = [("/usr/bin/",["bin/llx-moving-cmd","bin/llx-moving-gnome"]),("/etc/profile.d/",["profile.d/llx-moving-load.sh"]),("/etc/systemd/logind.conf.d/",["logind.conf.d/llx-moving-gnome.conf"]),("/etc/xdg/autostart/",["llx-moving-gnome.desktop"])]
     17        data_files       = [("/usr/bin/",["bin/llx-moving-cmd","bin/llx-moving-gnome"]),("/etc/profile.d/",["profile.d/llx-moving-load.sh"]),("/etc/systemd/logind.conf.d/",["logind.conf.d/llx-moving-gnome.conf"]),("/etc/xdg/autostart/",["llx-moving-gnome.desktop"]),("/usr/share/lliurex-moving-core/postactions/",["postactions/*"])]
    1818                                         
    1919     )
  • lliurex-moving-core/trunk/fuentes/src/net/Lliurex/Classroom/MovingProfiles/__init__.py

    r5961 r5982  
    55import subprocess
    66import shutil
     7import glob
    78
    89import xmlrpclib
     
    197198                                rm(hpath)
    198199
    199 
     200                print("[LoadSession] Stage 3")
     201               
     202                path="/usr/share/lliurex-moving-core/postactions/"
     203               
     204                for f in glob.glob(path+"*"):
     205                        print("* Executing %s ..."%f)
     206                        os.system(f)
    200207
    201208
Note: See TracChangeset for help on using the changeset viewer.