mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-25 17:57:02 +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
|
# You should have received a copy of the GNU Lesser General Public License
|
||||||
# along with IfcOpenShell. If not, see <http://www.gnu.org/licenses/>.
|
# 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 pytest
|
||||||
import ifcopenshell
|
import ifcopenshell
|
||||||
import ifcopenshell.api.project
|
import ifcopenshell.api.project
|
||||||
|
|||||||
Reference in New Issue
Block a user