-
Notifications
You must be signed in to change notification settings - Fork 3
/
settings.py
45 lines (24 loc) · 962 Bytes
/
settings.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
import os
import sys
SERVER = 'http://127.0.0.1:1313'
SERVER = 'http://172.19.0.2:1313' # running inside docker now for development
API_V = 'v1'
PRODUCTION_SERVER = 'https://quarantine.infino.me'
RECEPTORS_DIR = 'docking/receptors'
def getwd():
if os.name == 'nt':
if hasattr(sys, 'frozen'):
#print 'this is a pyinstaller-compiled binary'
#print sys.frozen
#print sys._MEIPASS # location of directory program is running in
return sys._MEIPASS
else:
return os.getcwd() # how I originally did this ....
else:
return os.getcwd() # how I originally did this ....
RECEPTORS_DIR = os.path.join(getwd(), 'receptors')
TRANCHE_DOWNLOAD_LOCATION = os.path.join(getwd(), 'downloads')
MGL_PATH = os.path.join(os.getcwd(), 'mgltools_x86_64Linux2_1.5.6')
LOCAL_RESULTS_DIR = os.path.join( getwd(), 'results' )
MGL_LIBS = os.path.join(getwd(), 'docking', 'mglmin')
sys.path.append(MGL_LIBS)