Commit d4d0e592 authored by Maxime Perrotin's avatar Maxime Perrotin
Browse files

Once in the project folder, don't move out

When loading a model in a different folder, the tool has to move to this
folder to find the ASN.1 files that are referenced without any path
The tool used to return immediately to the folder where is was called
from. The problem is that subsequent model checks would fail because
they would not know the path of the asn1 files anymore.
parent 2c10ab3e
......@@ -2184,7 +2184,7 @@ clean:
def load_file(self, files):
''' Parse a PR file and render it on the scene '''
cwd = os.getcwd()
#cwd = os.getcwd()
dir_pool = set(os.path.dirname(each) for each in files)
if len(dir_pool) != 1:
LOG.warning('Files are spread in several directories - '
......@@ -2246,7 +2246,7 @@ clean:
sdlSymbols.AST = ast
sdlSymbols.CONTEXT = block
def open_diagram(self):
''' Load one or several .pr file and display the state machine '''
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