/usr/share/pyshared/Pyro/__init__.py is in pyro 1:3.14-1.2.
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 32 33 34 35 | #############################################################################
#
# Pyro file to make Pyro a package, and to set up configuration.
#
# This is part of "Pyro" - Python Remote Objects
# Which is (c) Irmen de Jong - irmen@razorvine.net
#
# Note: to see what Pyro version this is, print Pyro.constants.VERSION
#
#############################################################################
# Initialize Pyro Configuration.
#
# This is put here because it could actually initialize config stuff needed
# even before the code calls core.initClient or core.initServer.
#
# Pyro.config is a class, which has a __getattr__ member, so all
# pyro code can use Pyro.config.<itemname> to look up a value.
# This allows for tweaking the configuration lookups by writing
# a custom __getattr__ and/or __init__ for the class.
# However, currently the class initializer adds configuration items
# as regular class data members.
import os
import Pyro.configuration
config = Pyro.configuration.Config()
try:
confFile = os.environ['PYRO_CONFIG_FILE']
except KeyError:
confFile = ''
if not confFile and os.path.isfile('Pyro.conf'):
confFile='Pyro.conf'
config.setup(confFile)
|