Skip to content

Commit

Permalink
Seems strange to import from 'shablona' inside shablona.
Browse files Browse the repository at this point in the history
Does it work if I import from 'constants' instead?
  • Loading branch information
arokem committed Sep 5, 2015
1 parent c97c7d1 commit 090947f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
8 changes: 4 additions & 4 deletions shablona/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#from .constants import *
CONSTANT1 = 5
CONSTANT2 = 'i am constant'
from .constants import *
#CONSTANT1 = 5
#CONSTANT2 = 'i am constant'

from .shablona import *
from .version import __version__
from .version import __version__
2 changes: 1 addition & 1 deletion shablona/shablona.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from scipy.special import erf
import scipy.optimize as opt

from shablona import CONSTANT1, CONSTANT2
from .constants import CONSTANT1, CONSTANT2

def print_constants():
"""
Expand Down
1 change: 1 addition & 0 deletions shablona/tests/test_shablona.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

data_path = op.join(sb.__path__[0], 'data')


def test_constants():
npt.assert_(sb.CONSTANT1 == 5)

Expand Down

0 comments on commit 090947f

Please sign in to comment.