/usr/lib/stimfit/embedded_init.py is in stimfit 0.13.13-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 | #=========================================================================
# embedded_init.py
# 2009.12.31
#
# This file loads both Numpy and stf modules into the current namespace.
# Additionally, it loads the custom initialization script (stf_init.py)
#
# 2010.06.12
# Major stf classes were added (Recording, Channel, Section)
#
# It is used by embedded_stf.py and embedded_ipython.py
# Please, do not modify this file unless you know what you are doing
#
#=========================================================================
import numpy as np
import stf
from stf import *
from os.path import basename
try:
from stf_init import *
except ImportError:
# let the user know stf_init does not work!
pass
except SyntaxError:
pass
else:
pass
def intro_msg():
""" this is the starting message of the embedded Python shell.
Contains the current Stimfit version, together with the NumPy
and wxPython version.
"""
# access current versions of wxWidgets and NumPy
from wx import version as wx_version
from numpy.version import version as numpy_version
version_s = 'NumPy %s, wxPython %s' % (numpy_version, wx_version())
intro = '%s, using %s' % (stf.get_versionstring(), version_s)
return intro
|