Skip to content

project.py returns a WindowsError instead of showing that the library is not found #1864

@adustm

Description

@adustm

I launched the following command without building rtos and ethernet libraries prior to it:
python ..\mbed\workspace_tools\project.py -c -m NUCLEO_F746ZG -p 96 -i uvision5

This is failing with the following errors

Traceback (most recent call last):
  File "..\mbed\workspace_tools\project.py", line 176, in <module>
    setup_user_prj(project_dir, test.source_dir, test.dependencies)
  File "C:\mbed\workspace_tools\export\__init__.py", line 170, in setup_user_prj
    copy_tree(lib_path, join(user_lib, basename(lib_path)))
  File "C:\mbed\workspace_tools\export\__init__.py", line 152, in copy_tree
    copytree(src, dst)
  File "C:\Python27\lib\shutil.py", line 171, in copytree
    names = os.listdir(src)
WindowsError: [Error 3] The system cannot find the path specified: 'C:\\mbed\\.build\\rtos/*.*'

Martin asked me to create the issue, mentioning that I should not get a Windows Error but the script should return an error.
Kind regards

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions