Skip to content

Commit b64b5ad

Browse files
committed
Make path to data relative to script, not cwd
1 parent 8e7963e commit b64b5ad

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

code/rnnslu.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,10 @@
1515
import theano
1616
from theano import tensor as T
1717

18-
PREFIX = os.getenv('ATISDATA', 'data')
18+
PREFIX = os.getenv(
19+
'ATISDATA',
20+
os.path.join(os.path.split(os.path.abspath(os.path.dirname(__file__)))[0],
21+
'data'))
1922

2023

2124
# utils functions

0 commit comments

Comments
 (0)