Browse Source

Fix paths

2.0.0
Florian Mounier 10 years ago
parent
commit
02175144fe
  1. 2
      demo/moulinrouge/tests.py
  2. 4
      pygal/graph/frenchmap.py
  3. 2
      pygal/graph/swissmap.py
  4. 2
      pygal/graph/worldmap.py

2
demo/moulinrouge/tests.py

@ -447,7 +447,7 @@ def get_test_routes(app):
@app.route('/test/swissmap') @app.route('/test/swissmap')
def 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): for i in range(10):
smap.add('s%d' % i, [ smap.add('s%d' % i, [
(choice(list(CANTONS.keys())), randint(0, 100)) (choice(list(CANTONS.keys())), randint(0, 100))

4
pygal/graph/frenchmap.py

@ -169,7 +169,7 @@ REGIONS = {
with open(os.path.join( with open(os.path.join(
os.path.dirname(__file__), os.path.dirname(__file__), 'maps',
'fr.departments.svg')) as file: 'fr.departments.svg')) as file:
DPT_MAP = file.read() DPT_MAP = file.read()
@ -184,7 +184,7 @@ class FrenchMapDepartments(BaseMap):
with open(os.path.join( with open(os.path.join(
os.path.dirname(__file__), os.path.dirname(__file__), 'maps',
'fr.regions.svg')) as file: 'fr.regions.svg')) as file:
REG_MAP = file.read() REG_MAP = file.read()

2
pygal/graph/swissmap.py

@ -58,7 +58,7 @@ CANTONS = {
with open(os.path.join( with open(os.path.join(
os.path.dirname(__file__), os.path.dirname(__file__), 'maps',
'ch.cantons.svg')) as file: 'ch.cantons.svg')) as file:
CNT_MAP = file.read() CNT_MAP = file.read()

2
pygal/graph/worldmap.py

@ -29,7 +29,7 @@ from pygal.etree import etree
import os import os
with open(os.path.join( with open(os.path.join(
os.path.dirname(__file__), os.path.dirname(__file__), 'maps',
'worldmap.svg')) as file: 'worldmap.svg')) as file:
WORLD_MAP = file.read() WORLD_MAP = file.read()

Loading…
Cancel
Save