/usr/lib/python2.7/dist-packages/fte/conf.py is in python-fte 0.1.0-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 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
def getValue(key):
return conf[key]
def setValue(key, value):
conf[key] = value
def we_are_frozen():
# All of the modules are built-in to the interpreter, e.g., by py2exe
return hasattr(sys, "frozen")
def module_path():
if we_are_frozen():
return os.path.dirname(sys.executable)
else:
return os.path.dirname(__file__)
conf = {}
"""The base path for the location of the fte.* modules."""
if we_are_frozen():
conf['general.base_dir'] = module_path()
else:
conf['general.base_dir'] = os.path.join(module_path(), '..')
"""The path for fte *.json definition files."""
if we_are_frozen():
conf['general.defs_dir'] = os.path.join(module_path(), 'fte', 'defs')
else:
conf['general.defs_dir'] = os.path.join(module_path(), '..', 'fte', 'defs')
"""Our loglevel = 0|1|2"""
conf['runtime.loglevel'] = 1
"""The default AE scheme key."""
conf['runtime.fte.encrypter.key'] = 'FF' * 16 + '00' * 16
|