-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathsetup
More file actions
executable file
·22 lines (17 loc) · 790 Bytes
/
setup
File metadata and controls
executable file
·22 lines (17 loc) · 790 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/bin/env python
__cvs_id__ = '$Id$'
import os
import plearn.utilities.ppath as ppath
## Synchronization with the environment variable
plearndir = os.getenv( 'PLEARNDIR', 'HOME:PLearn' )
dbdir = os.getenv( 'DBDIR', '/u/lisa/Database' )
## Adding the standard PLearn-wide bindings
ppath.add_binding('HOME', "${HOME}" )
ppath.add_binding('PLEARNDIR', plearndir )
# ppath.add_binding('PLEARN_LIBDIR', "${PLEARN_LIBDIR}" )
ppath.add_binding('PLEARN_LIBDIR', "PLEARNDIR:external_libs" )
ppath.add_binding('DBDIR', dbdir )
ppath.add_binding('UCI_MLDB_REP', "DBDIR:UCI_MLDB" )
ppath.add_binding('UCI_MLDB', "PLEARNDIR:examples/data/uci_mldb" )
## This function writes the file down
ppath.write_bindings()