8 import roslib; roslib.load_manifest(PKG)
13 script_name = sys.argv[0]
15 script_dir = os.path.dirname(script_name)
16 if not os.path.islink(script_name):
18 script_name = os.path.join(script_dir, os.readlink(script_name))
19 except KeyError, reason:
21 except AttributeError, reason:
24 script_dir = os.path.join(os.getcwd(), script_dir)
25 script_dir = os.path.normpath(script_dir)
29 ROOT_DIR = os.path.join(path,
"..")
30 ROOT_DIR = os.path.normpath(ROOT_DIR)
34 sys.path.append(ROOT_DIR)
36 from neo_paths
import paths
37 sys.path =
paths(ROOT_DIR) + sys.path
38 sys.path.append(os.path.join(ROOT_DIR,
"mod/mail"))