예제 #1
0
def test_filename_with_arbitrary_ext():
    db = DB()
    db._set_path_components(FILE_NAME)

    assert db._pth == r'f:\projects\examples'
    assert db._base == r'example-a2l-file.foobar'
    assert db._dbfn == r'example-a2l-file.a2ldb'
    assert db._a2lfn == r'example-a2l-file.foobar'
예제 #2
0
def test_filename_with_a2ldb_ext():
    db = DB()
    db._set_path_components(FILE_NAME)

    assert db._pth == r"f:\projects\examples"
    assert db._base == r"example-a2l-file.a2ldb"
    assert db._dbfn == r"example-a2l-file.a2ldb"
    assert db._a2lfn == r"example-a2l-file.a2l"
예제 #3
0
def test_filename_with_a2l_ext():
    db = DB()
    db._set_path_components(r"f:\projects\examples\example-a2l-file.a2l")

    assert db._pth == r'f:\projects\examples'
    assert db._base == r'example-a2l-file.a2l'
    assert db._dbfn == r'example-a2l-file.a2ldb'
    assert db._a2lfn == r'example-a2l-file.a2l'
예제 #4
0
파일: ex02.py 프로젝트: capeter123/pyA2L
from pya2l import DB

db = DB()
session = db.open_existing("ASAP2_Demo_V161")
예제 #5
0
파일: ex04.py 프로젝트: anekename/pyA2L
import sys

from pya2l import DB
import pya2l.model as model

db = DB()
session = db.open_create("ASAP2_Demo_V161")
db.export_a2l(sys.stdout)
예제 #6
0
#
# Just import an .a2l file, nothing more.
#
from pya2l import DB

db = DB()
session = db.import_a2l("ASAP2_Demo_V161.a2l")