Skip to content

Commit 5af95e8

Browse files
committed
utils: fix in/outdir
1 parent 08b9585 commit 5af95e8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ccsgp_get_started/examples/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ def getWorkDirs():
1414
caller_modurl = os.path.splitext(caller_relurl)[0]
1515
# split caller_url & append 'Dir' to package name
1616
dirs = caller_modurl.split('/')
17-
dirs[0] += 'Dir'
17+
dirs[0] = 'data' # TODO de-hardcode
1818
# get, check and create outdir
19-
outDir = os.path.join(*(dirs + ['output']))
19+
outDir = os.path.join(*(['output'] + dirs[1:]))
2020
if not os.path.exists(outDir): os.makedirs(outDir)
2121
# get and check indir
2222
dirs.append('input')

0 commit comments

Comments
 (0)