14 lines
485 B
Python
14 lines
485 B
Python
import sys, os
|
|
sys.path.insert(0, '/home/hmo/MoFin/deploy/bot')
|
|
sys.path.insert(0, '/home/hmo/MoFin/deploy/bot/../..')
|
|
try:
|
|
from xmpp_logger import log_xmpp
|
|
print('import OK from bot path')
|
|
import xmpp_logger
|
|
print('xmpp_logger file:', xmpp_logger.__file__)
|
|
except Exception as e:
|
|
print('import FAIL:', e)
|
|
|
|
# also check the file exists
|
|
p = '/home/hmo/MoFin/xmpp_logger.py'
|
|
print('exists:', os.path.exists(p), 'size:', os.path.getsize(p) if os.path.exists(p) else 0) |