christoph2 / pyA2L

ASAM ASAP2 Library for Python
GNU General Public License v2.0
139 stars 71 forks source link

Import a2l-file from any directory #20

Closed bessman closed 4 years ago

bessman commented 4 years ago

Currently, a2l-files can only be imported from the working directory. After this change they can be imported from any directory. The a2ldb-file will be generated in the same directory as the a2l-file, i.e. same as the current behavior.

Types of changes

coveralls commented 4 years ago

Coverage Status

Coverage decreased (-0.03%) to 70.083% when pulling b86a15da1e0a6fe84f6ad93723c6eafe3f4af0e3 on bessman:a2l_path into 5f169ec284fc30a5e2d3d3986d6cafd9203b5b5b on christoph2:master.

bessman commented 4 years ago

On a related note, perhaps the database should not be written to a file automatically. The user might have read permission to the directory where the a2l-file is, but not write permission. How about adding a save-method to pya2l.DB with which the user can choose if and where to save the a2ldb-file?

christoph2 commented 4 years ago

As a first step I will add an 'in_memory' option.