##// END OF EJS Templates
admin-user-list: expose last activity in exchange to last login....
admin-user-list: expose last activity in exchange to last login. - last login is less important than activity - last login can always be shown in advnaced view - make the `authnetiaction type` label to be shorter

File last commit:

r1:854a839a default
r1254:2ae8ce46 default
Show More
importpath.py
15 lines | 494 B | text/x-python | PythonLexer
import os
import sys
def import_path(fullpath):
""" Import a file with full path specification. Allows one to
import from anywhere, something __import__ does not do.
"""
# http://zephyrfalcon.org/weblog/arch_d7_2002_08_31.html
path, filename = os.path.split(fullpath)
filename, ext = os.path.splitext(filename)
sys.path.append(path)
module = __import__(filename)
reload(module) # Might be out of date during tests
del sys.path[-1]
return module