Skip to content

Commit 71eaf04

Browse files
committed
fix tests
1 parent 6be3278 commit 71eaf04

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

happyMirror/__init__.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@
33
import sys
44

55
from flask import Flask, render_template
6-
import config
6+
7+
try:
8+
import config
9+
except ImportError:
10+
from . import config
711

812

913
def create_app(widgets=None, test_config=None):

happyMirror/widgets/quote/quote.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,12 @@
66

77
from happyMirror.render import BaseRenderer, RenderResult
88

9-
import widget_secrets
10-
import widget_config
9+
try:
10+
import widget_secrets
11+
import widget_config
12+
except ImportError:
13+
from . import widget_secrets
14+
from . import widget_config
1115

1216

1317
class Renderer(BaseRenderer):

0 commit comments

Comments
 (0)