/usr/share/viewmol/scripts/template.py is in viewmol 2.4.1-24+b1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | #!/usr/bin/python
#*******************************************************************************
# *
# Viewmol *
# *
# T E M P L A T E . P Y *
# *
# Copyright (c) Joerg-R. Hill, October 2003 *
# *
#*******************************************************************************
#
# $Id: template.py,v 1.1 2003/11/07 13:20:26 jrh Exp $
# $Log: template.py,v $
# Revision 1.1 2003/11/07 13:20:26 jrh
# Initial revision
#
#
import viewmol
class template:
def run(self):
print "This is a script template which just prints this silly message."
def register(self, language):
viewmol.registerMenuItem("Script template")
# The following three lines are not necessary for running this script
# from the "Run script" menu, but allow the script to also be run standalone
if __name__ == '__main__':
script=template()
script.run()
|