Python Get Cell Value

Hi,
i have added customized menu from “Tools >> Customize >> ContextMenus” with python macros to open folder.
Now tell me how to get value of that cell where user will right click ??

import uno
import os

oDoc = XSCRIPTCONTEXT.getDocument()

def openSandboxDirFn():
    oSheet = oDoc.CurrentController.ActiveSheet
    oCell1 = oSheet.getCurrentSelection()
    shNumber = oCell1.String
    shDir = ('/jobs/'+shNumber)
    os.system('xdg-open "%s"'% shDir)

Got solution

oDoc = XSCRIPTCONTEXT.getDocument()
oSheet = oDoc.getSheets().getByIndex( 0 )
oCell1 = oDoc.getCurrentSelection().getString()

One more question, if i add contextMenu via Tools>>Customize>>ContextMenu-Tab
can i store this functionality in file ?? so that if i share file with other user thn they will directly use contextMenu without doing any manual work.

Thank you