File size: 640 Bytes
3bbb319 | 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 | import os
import sys
import warnings
from pathlib import Path
warnings.filterwarnings("ignore")
this_dir = os.path.dirname(__file__)
def add_path(path):
if path not in sys.path:
sys.path.insert(0, path)
local_bin_paths=[
r'C:\Users\lithiumice',
r'C:\Users\lithiumice\code',
os.path.join(this_dir, '..'),
# sys.path.append(Path(__file__).parent.parent.__str__())
]
for path in local_bin_paths:
add_path(path)
MPI_bin_paths=[
'/is/cluster/scratch/hyi/ExpressiveBody',
'/is/cluster/scratch/hyi/ExpressiveBody/speech2gesture_dataset',
]
for path in MPI_bin_paths:
add_path(path)
|