DIRACGrid / diracx

The neXt DIRAC generation
GNU General Public License v3.0
8 stars 20 forks source link

use realpath to add the yaml file when generating the CS #44

Closed hamar closed 1 year ago

hamar commented 1 year ago

Otherwise we get exceptions like

ValueError: Absolute path PosixPath('/var/folders/50/d5nfyk3x1qjdp7fwrnwjwtmm0000gn/T/tmp.Yfn6F3fz/cs_store/initialRepo/default.yml') is not in git repository at 
'/private/var/folders/50/d5nfyk3x1qjdp7fwrnwjwtmm0000gn/T/tmp.Yfn6F3fz/cs_store/initialRepo'
chaen commented 1 year ago

I can't reproduce anymore, and I suspect that pytest generates the realpath now. So this fix is not needed anymore. We can use relative path (although the doc explicitely states that absolue path are supported)