mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 09:48:32 +00:00
Don't import cwd ifcopenshell folder when running tests
This commit is contained in:
@@ -16,6 +16,14 @@
|
||||
# You should have received a copy of the GNU Lesser General Public License
|
||||
# along with IfcOpenShell. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
import os
|
||||
import sys
|
||||
|
||||
if os.path.abspath(os.path.join(os.path.dirname(__file__), '..')) == sys.path[0]:
|
||||
# Don't import ifcopenshell from local directory, because it most likely
|
||||
# does not contain the built binary
|
||||
sys.path[0:1] = []
|
||||
|
||||
import pytest
|
||||
import ifcopenshell
|
||||
import ifcopenshell.api.project
|
||||
|
||||
Reference in New Issue
Block a user