forked from vcg-uvic/learned-correspondence-release
-
Notifications
You must be signed in to change notification settings - Fork 0
/
servers.py
68 lines (48 loc) · 911 Bytes
/
servers.py
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# servers.py ---
#
# Filename: servers.py
# Description:
# Author: Kwang Moo Yi
# Maintainer:
# Created: Mon Apr 2 19:23:30 2018 (-0700)
# Version:
# Package-Requires: ()
# URL:
# Doc URL:
# Keywords:
# Compatibility:
#
#
# Commentary:
#
#
#
#
# Change Log:
#
#
#
# Copyright (C)
# Visual Computing Group @ University of Victoria
# Computer Vision Lab @ EPFL
# Code:
import socket
def is_computecanada():
hostname = socket.gethostname()
check = False
check += hostname.startswith("cedar")
check += hostname.startswith("gra")
check += hostname.startswith("cdr")
return check
def is_vcg_uvic():
hostname = socket.gethostname()
check = False
check += hostname.startswith("kingwood")
return check
def is_cvlab_epfl():
hostname = socket.gethostname()
check = False
check += hostname.startswith("icc")
return check
#
# servers.py ends here