Commit 89c69c27 authored by Maxime Perrotin's avatar Maxime Perrotin
Browse files

Workaround ASN1SCC minor bug for the Windows platform

parent 511d4ade
......@@ -59,6 +59,10 @@ def parse_asn1(*files, **options):
asn1scc_root = os.path.dirname(spawn.find_executable('asn1.exe'))
tempdir = tempfile.mkdtemp()
if hasattr(sys, 'frozen'):
# On windows, remove the drive letter, workaround to ASN1SCC bug
tempdir = tempdir[2:]
asn1scc_root = '.' if not asn1scc_root else asn1scc_root[2:]
filename = str(uuid.uuid4()).replace('-', '_')
filepath = tempdir + os.sep + filename + '.py'
......
Supports Markdown
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