Skip to content

Commit

Permalink
Add single file to manage shared_data
Browse files Browse the repository at this point in the history
  • Loading branch information
pradal committed Feb 12, 2024
1 parent 7e09edd commit c69a59b
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/openalea/strawberry/data.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
""" Module providing shared data access
"""

from openalea.deploy.shared_data import shared_data


data_directory = shared_data(openalea.strawberry.__path__)
count = 0
d = Path(openalea.strawberry.__path__[0])
while data_directory is None and count <=3:
d = d/'..'
data_directory = shared_data(d)
count+=1

0 comments on commit c69a59b

Please sign in to comment.