kopia lustrzana https://github.com/marceloprates/prettymaps
Fixed relative path for presets folder in draw.py
rodzic
03025d8232
commit
6b1a9fe79f
|
@ -16,7 +16,6 @@ You should have received a copy of the GNU Affero General Public License
|
|||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
"""
|
||||
|
||||
|
||||
import re
|
||||
import os
|
||||
import json
|
||||
|
@ -41,7 +40,6 @@ from typing import Optional, Union, Tuple, List, Dict, Any, Iterable
|
|||
from shapely.geometry import Point, LineString, MultiLineString, Polygon, MultiPolygon, GeometryCollection, box
|
||||
from shapely.geometry.base import BaseGeometry
|
||||
|
||||
|
||||
#import vsketch
|
||||
|
||||
|
||||
|
@ -590,7 +588,7 @@ def draw_text(
|
|||
|
||||
|
||||
def presets_directory():
|
||||
return os.path.join(pathlib.Path(__file__).resolve().parent.parent, 'presets')
|
||||
return os.path.join(pathlib.Path(__file__).resolve().parent, 'presets')
|
||||
|
||||
|
||||
def create_preset(
|
||||
|
|
10
setup.py
10
setup.py
|
@ -24,14 +24,4 @@ setup(
|
|||
],
|
||||
package_dir={'prettymaps': '.'},
|
||||
package_data={'prettymaps': ['presets/*.json']},
|
||||
#data_files=[(presets_dir, [
|
||||
# 'presets/barcelona-plotter.json',
|
||||
# 'presets/barcelona.json',
|
||||
# 'presets/cb-bf-f.json',
|
||||
# 'presets/default.json',
|
||||
# 'presets/heerhugowaard.json',
|
||||
# 'presets/macao.json',
|
||||
# 'presets/minimal.json',
|
||||
# 'presets/tijuca.json',
|
||||
#])],
|
||||
)
|
||||
|
|
Ładowanie…
Reference in New Issue