From 5d6d4ad6d70ae518657b0f3ca5fd8308c547be45 Mon Sep 17 00:00:00 2001 From: Callum Rollo Date: Wed, 6 May 2020 20:18:58 +0200 Subject: [PATCH] paths debugging --- cmcrameri/cm.py | 4 +++- setup.py | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/cmcrameri/cm.py b/cmcrameri/cm.py index d69bc27..006b1d1 100755 --- a/cmcrameri/cm.py +++ b/cmcrameri/cm.py @@ -13,7 +13,9 @@ import matplotlib.pyplot as plt import os # Find the colormap text files and make a list of the paths -paths = list((Path(os.path.join(os.path.split(__file__)[0], 'cmaps'))).glob('*.txt')) +text_file_folder = os.path.join(os.path.dirname(__file__), 'cmaps') +print(Path(os.path.join(os.path.split(__file__)[0], 'cmaps'))) +paths = list(Path(text_file_folder).glob('*.txt')) crameri_cmaps = dict() crameri_cmaps_r = dict() for cmap_path in paths: diff --git a/setup.py b/setup.py index bf09849..e9021d0 100644 --- a/setup.py +++ b/setup.py @@ -6,7 +6,7 @@ setup( name = 'cmcrameri', packages = ['cmcrameri'], - version = '0.4', + version = '0.6', license='MIT', description = 'Perceptually uniform colourmaps', author = 'Callum Rollo',