-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathactivate_toolbox.py
More file actions
27 lines (22 loc) · 1.06 KB
/
activate_toolbox.py
File metadata and controls
27 lines (22 loc) · 1.06 KB
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
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# Filename: activate_toolbox.py
# Author: Christof Schöch
"""
# Script to add the "toolbox" module to your syspath.
# Run once with appropriate path to use the toolbox with "import".
"""
import sys
import os
## Enter the path to the folder in which your toolbox folder is located.
## Example: sys.path.append(os.path.abspath("/home/christof/Repos/cligs/"))
sys.path.append(os.path.abspath("/home/christof/Repos/cligs/"))
#sys.path.append(os.path.abspath("/usr/local/lib/python3.4/dist-packages/"))
#sys.path.append(os.path.abspath("/usr/local/lib/python3.4/dist-packages/numpy-1.10.4.egg"))
## Optional: Activate to remove a (mistaken or redundant path)
#sys.path.remove(os.path.abspath("/usr/local/lib/python3.4/dist-packages/"))
#sys.path.remove(os.path.abspath("/home/christof/Repos/cligs/"))
#sys.path.remove(os.path.abspath("/usr/lib/python3.4/"))
#sys.path.remove(os.path.abspath("/usr/local/lib/python3.4/dist-packages/numpy-1.10.4.egg"))
## This is for checking whether the path settings are correct.
print(sys.path)