Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build of path is not safe #3

Open
jbuisine opened this issue May 1, 2021 · 0 comments
Open

Build of path is not safe #3

jbuisine opened this issue May 1, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@jbuisine
Copy link
Member

jbuisine commented May 1, 2021

In this code example: https://github.com/prise-3d/rawls_api/blob/devel/api.py#L41, the path construction is not safe.

Package os gives the possibility to build path in a safe way.

Example:

import os
global_path = 'projects'
csv_path = os.path.join(global_path, 'data', 'csv_data')

This issue can be linked with issue #2.

@jbuisine jbuisine added enhancement New feature or request bug Something isn't working and removed enhancement New feature or request labels May 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant