If you clone CuraEngine inside cura, as the instructions suggest, this
is where the CuraEngine build ends up putting it.
With this, invoking ./dev-cura actually finds the engine in our build
tree.
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
full_filename = os.path.abspath(os.path.join(base_search_path, '/'.join(['..'] * n), 'CuraEngine', search_filename))
if os.path.isfile(full_filename):
return full_filename
+ full_filename = os.path.abspath(os.path.join(base_search_path, '/'.join(['..'] * n), 'CuraEngine', 'build', search_filename))
+ if os.path.isfile(full_filename):
+ return full_filename
if os.path.isfile('/usr/bin/CuraEngine'):
return '/usr/bin/CuraEngine'
if os.path.isfile('/usr/local/bin/CuraEngine'):