the file ending is tentatively ".opt"
let me show you a snippet of our python code (this code should live in OMERO_HOME/lib/python).
- Code: Select all
def loadAdminInfo():
# extract the information from a configuration file or something
# load the configuration file path
env = os.environ
try:
OMERO_HOME = env['OMERO_HOME']
except:
return "nope", "nope"
# load the administrator's account info
filename = OMERO_HOME + '/lib/python/OMERO_PSLID_config.opt';
f=open(filename, 'rb')
lines = f.readlines()
So if we copy the file, 'OMERO_PSLID_config.opt', to resources/ directory in the git, does it automatically go to OMERO_HOME/lib/python/ (when you generate OMERO 4.2.1. version from the git clone)? and can we open the file by the above code?
bk
BK