Skip to content

Commit d9eab20

Browse files
committed
Look for data/ if brick/ does not exist
1 parent 39faf06 commit d9eab20

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

bin/biobrick-setup-source

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,10 @@ with open( output_dir / 'brick-manifest', 'w') as manifest:
3434
data_symlink = (output_dir / brick['name'])
3535
if data_symlink.exists() and data_symlink.is_symlink():
3636
data_symlink.unlink()
37-
data_symlink.symlink_to( brick['path'] / 'brick' )
37+
if (brick['path'] / 'brick').exists():
38+
data_symlink.symlink_to( brick['path'] / 'brick' )
39+
elif (brick['path'] / 'data').exists():
40+
data_symlink.symlink_to( brick['path'] / 'data' )
41+
else:
42+
raise Exception('Unknown directory for brick data for brick {name}'.format( name = brick['name']))
3843
manifest.write(brick['url'] + "\n")

0 commit comments

Comments
 (0)