/usr/lib/python3/dist-packages/pyutilib/component/app/tests/app3.py is in python3-pyutilib 5.3.5-1.
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 | import pyutilib.component.app
import os
import sys
currdir=sys.argv[-1]+os.sep
app=pyutilib.component.app.SimpleApplication("foo")
app.config.load(currdir+"log1.ini")
app.logger.log_dir = currdir
app.logger.log_file = "app3.log"
app.logger.reset_after_updates()
app.env.load_services()
app.log("test_app3 message")
app.flush()
|