Loading src/galassify/utils.py +2 −3 Original line number Diff line number Diff line import os import re import sys import os.path as path import glob import argparse from pathlib import Path Loading Loading @@ -67,9 +66,9 @@ def exist_basic_files(): files = ['files/','img/','config'] test_files = True for file in files: if not path.exists(file): if not Path(file).exists(): test_files = False if not path.exists('files/galaxies.csv'): if not Path('files/galaxies.csv').exists: test_files = False return test_files Loading Loading
src/galassify/utils.py +2 −3 Original line number Diff line number Diff line import os import re import sys import os.path as path import glob import argparse from pathlib import Path Loading Loading @@ -67,9 +66,9 @@ def exist_basic_files(): files = ['files/','img/','config'] test_files = True for file in files: if not path.exists(file): if not Path(file).exists(): test_files = False if not path.exists('files/galaxies.csv'): if not Path('files/galaxies.csv').exists: test_files = False return test_files Loading