Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
2 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4b2c5f5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know why, but the relative import does not work with python2.
regarding: http://python-future.org/compatible_idioms.html#imports-relative-to-a-package it should work for python2 and 3.
problem can be reproduced this way:
seems to be a circular import, maybe python2 has a problem with this.
4b2c5f5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For me it doesn't work with Py3 either.
4b2c5f5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FreeCAD --run-test 0
still has some problems but the import statement worked for me (py3.6):from PathScripts import PathUtils
but anyway @sliptonic has solved it with a recent PR: 835026d