0

How to connect session_manager

How can I apply to functions like "session_manager.remove" through Python? If I do not import module session_manaher (I do not know from where)?

Can my code look like this: os.system ('/ home/ostap/rv-3.12.18/bin/rvpush py-exec "import rv.commands; session_manager.remove (file); "')

1 comment

  • 0
    Avatar
    Alan Trombla

    Hi Ostap,

    Maybe you can tell me a little more about what you're trying to do.  The session_manager module is written in Mu, and can't be called directly from Python.  But further session_manager.remove() is a string-array utility function that doesn't do anything with the loaded media.  What exactly do you want to make happen with your rvpush command ?   And to be clear, you're trying to control RV from a separate program (python script) correct ?

    Thanks,

    Alan

Please sign in to leave a comment.