gizatechxyz / giza-cli

Giza Platform CLI
https://cli.gizatech.xyz/welcome/readme
MIT License
16 stars 8 forks source link

FIx URL join in windows #41

Closed Gonmeso closed 9 months ago

Gonmeso commented 9 months ago

There was an issue with windows users due to using os.path.join, this function in unix like systems uses the / separator which its the same one used for urls but for windows systems the OS separator is \ which in turn made the python request uses a non existent URL that returns a 404.

%5C its the url encoding for \

Now the path is joined using "/".join([resources]) instead of os.path.join which is system dependant.