hacky way to get imports to work

This commit is contained in:
Abubakar Abid 2022-03-29 10:49:20 -07:00
parent e09df09d9e
commit b851831aef

View File

@ -1,7 +1,15 @@
import random
import unittest
from test_data.blocks_configs import XRAY_CONFIG
try:
from .test_data.blocks_configs import XRAY_CONFIG # for pytest
except ImportError:
pass
try:
from test_data.blocks_configs import XRAY_CONFIG # for regular python
except ImportError:
pass
import gradio as gr