Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
asn1-value-editor
Commits
ac6f4bb3
Commit
ac6f4bb3
authored
Mar 21, 2018
by
Maxime Perrotin
Browse files
Use mono when calling msc2py.exe
parent
38c3f176
Changes
3
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
ac6f4bb3
...
...
@@ -34,6 +34,7 @@ LICENSE: LGPL - see LICENSE file
CHANGELOG:
1.
6.2 - Use mono prefix to call msc2py.exe
1.
6.1 - Fix messages that did not appear on the GUI if received too fast
1.
6.0 - Fix autoscrolling in MSC streaming scenes
1.
5.8 - Fix in Scenario.py used in MSCtoPython handlers
...
...
asn1_value_editor/asn1_value_editor.py
View file @
ac6f4bb3
...
...
@@ -16,7 +16,7 @@
__author__
=
"Maxime Perrotin"
__license__
=
"LGPLv3"
__version__
=
"1.6.
1
"
__version__
=
"1.6.
2
"
__url__
=
"http://taste.tuxfamily.org"
import
sys
...
...
asn1_value_editor/mscHandler.py
View file @
ac6f4bb3
...
...
@@ -18,6 +18,7 @@ import os
import
sys
import
subprocess
from
time
import
strftime
import
distutils.spawn
as
spawn
from
multiprocessing
import
Process
,
Pipe
from
PySide.QtGui
import
(
QFileDialog
,
QGraphicsView
,
QDockWidget
,
QMessageBox
,
...
...
@@ -278,10 +279,15 @@ endmscdocument;
py_script_name
=
os
.
path
.
basename
(
script
)[:
-
3
]
if
selected_msc
is
not
None
:
path_to_mono
=
spawn
.
find_executable
(
'mono'
)
path_to_msc2py
=
spawn
.
find_executable
(
'msc2py.exe'
)
if
not
path_to_mono
or
not
path_to_msc2py
:
raise
TypeErorr
(
'"mono" or "msc2py.exe" not found in path.'
)
py_script_name
=
os
.
path
.
basename
(
selected_msc
[:
-
4
])
self
.
log
.
info
(
'Converting MSC script '
+
selected_msc
+
' to Python'
)
commandline
=
[
'
msc2py
.exe'
,
commandline
=
[
path_to_mono
,
path_to_
msc2py
,
'-i'
,
os
.
path
.
abspath
(
self
.
ivpath
),
'-a'
,
'dataview-uniq.asn'
,
'-p'
,
py_script_name
+
'.py'
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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