Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
OpenGEODE
Commits
89c69c27
Commit
89c69c27
authored
Oct 21, 2014
by
Maxime Perrotin
Browse files
Workaround ASN1SCC minor bug for the Windows platform
parent
511d4ade
Changes
1
Hide whitespace changes
Inline
Side-by-side
Asn1scc.py
View file @
89c69c27
...
...
@@ -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'
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment