diff --git a/demo/moulinrouge/tests.py b/demo/moulinrouge/tests.py index 6f04344..5201fd2 100644 --- a/demo/moulinrouge/tests.py +++ b/demo/moulinrouge/tests.py @@ -447,7 +447,7 @@ def get_test_routes(app): @app.route('/test/swissmap') def test_swissmap(): - smap = SwissMap_Cantons(style=choice(list(styles.values()))) + smap = SwissMapCantons(style=choice(list(styles.values()))) for i in range(10): smap.add('s%d' % i, [ (choice(list(CANTONS.keys())), randint(0, 100)) diff --git a/pygal/graph/frenchmap.py b/pygal/graph/frenchmap.py index 698857b..bd790a2 100644 --- a/pygal/graph/frenchmap.py +++ b/pygal/graph/frenchmap.py @@ -169,7 +169,7 @@ REGIONS = { with open(os.path.join( - os.path.dirname(__file__), + os.path.dirname(__file__), 'maps', 'fr.departments.svg')) as file: DPT_MAP = file.read() @@ -184,7 +184,7 @@ class FrenchMapDepartments(BaseMap): with open(os.path.join( - os.path.dirname(__file__), + os.path.dirname(__file__), 'maps', 'fr.regions.svg')) as file: REG_MAP = file.read() diff --git a/pygal/graph/swissmap.py b/pygal/graph/swissmap.py index 1fe7efa..384cf05 100644 --- a/pygal/graph/swissmap.py +++ b/pygal/graph/swissmap.py @@ -58,7 +58,7 @@ CANTONS = { with open(os.path.join( - os.path.dirname(__file__), + os.path.dirname(__file__), 'maps', 'ch.cantons.svg')) as file: CNT_MAP = file.read() diff --git a/pygal/graph/worldmap.py b/pygal/graph/worldmap.py index fd4134f..72e732f 100644 --- a/pygal/graph/worldmap.py +++ b/pygal/graph/worldmap.py @@ -29,7 +29,7 @@ from pygal.etree import etree import os with open(os.path.join( - os.path.dirname(__file__), + os.path.dirname(__file__), 'maps', 'worldmap.svg')) as file: WORLD_MAP = file.read()