Skip to content

Commit

Permalink
fix command import
Browse files Browse the repository at this point in the history
  • Loading branch information
mashehu committed Oct 24, 2024
1 parent 94bddc2 commit 5c4a5e6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion nf_core/pipelines/create/create.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
from nf_core.pipelines.create.utils import CreateConfig, features_yml_path, load_features_yaml
from nf_core.pipelines.create_logo import create_logo
from nf_core.pipelines.lint_utils import run_prettier_on_file
from nf_core.rocrate import ROCrate
from nf_core.pipelines.rocrate import ROCrate
from nf_core.utils import LintConfigType, NFCoreTemplateConfig

log = logging.getLogger(__name__)
Expand Down
4 changes: 2 additions & 2 deletions nf_core/pipelines/rocrate.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,14 +177,14 @@ def make_workflow_rocrate(self) -> None:
)

# add readme as description
readme = Path("README.md")
readme = self.pipeline_dir / "README.md"

try:
self.crate.description = readme.read_text()
except FileNotFoundError:
log.error(f"Could not find README.md in {self.pipeline_dir}")
# get license from LICENSE file
license_file = Path("LICENSE")
license_file = self.pipeline_dir / "LICENSE"
try:
license = license_file.read_text()
if license.startswith("MIT"):
Expand Down

0 comments on commit 5c4a5e6

Please sign in to comment.