Commit 29f86866 authored by Maxime Perrotin's avatar Maxime Perrotin

Fix path issue

parent ebf0904d
...@@ -2097,7 +2097,7 @@ clean: ...@@ -2097,7 +2097,7 @@ clean:
try: try:
firstAsn1File = os.path.basename(ogParser.DV.asn1Files[0]) firstAsn1File = os.path.basename(ogParser.DV.asn1Files[0])
source_dir = os.path.relpath\ source_dir = os.path.relpath\
(os.path.dirname(ogParser.DV.asn1Files[0])) (os.path.dirname(ogParser.DV.asn1Files[0]) or ".")
otherAsn1Files = [os.path.relpath(path, "code") otherAsn1Files = [os.path.relpath(path, "code")
for path in ogParser.DV.asn1Files[1:]] for path in ogParser.DV.asn1Files[1:]]
except (AttributeError, IndexError): except (AttributeError, IndexError):
...@@ -2113,7 +2113,7 @@ clean: ...@@ -2113,7 +2113,7 @@ clean:
if not firstAsn1File: if not firstAsn1File:
firstAsn1File = newtypesAsn firstAsn1File = newtypesAsn
else: else:
otherAsn1Files.append(os.path.relpath(newtypesAsn, "code")) otherAsn1Files.append(newtypesAsn)
asn1Quotes = ['"{}"'.format(name) for name in otherAsn1Files] asn1Quotes = ['"{}"'.format(name) for name in otherAsn1Files]
otherAsn = ", ".join(asn1Quotes) otherAsn = ", ".join(asn1Quotes)
......
system og; system og;
/* CIF TEXT (228, 136), (391, 216) */ /* CIF TEXT (228, 136), (409, 216) */
-- demonstrating how to create custom types with the newtype -- demonstrating how to create custom types with the newtype
-- sdl construct -- sdl construct
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment