Skip to content

Commit

Permalink
🔧 change default dirs
Browse files Browse the repository at this point in the history
  • Loading branch information
jsmedmar committed Oct 16, 2018
1 parent e372fb1 commit c26bd9e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion register_toil/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.1.2
1.1.3
10 changes: 6 additions & 4 deletions register_toil/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@
from register_toil import __version__
from register_toil import utils

_DEFAULT_OPTDIR = "/work/isabl/local"
_DEFAULT_BINDIR = "/work/isabl/bin"
_DEFAULT_VOLUMES = (
("/ifs", "/ifs"),
("/juno", "/juno"),
Expand All @@ -50,14 +52,14 @@
show_default=True,
type=click.Path(resolve_path=True, dir_okay=True),
help="path were executables will be linked to",
default=os.getenv("TOIL_REGISTER_BIN", "/work/isabl/local/bin"),
default=os.getenv("TOIL_REGISTER_BIN", _DEFAULT_BINDIR),
)
@click.option(
"--optdir",
show_default=True,
type=click.Path(resolve_path=True, dir_okay=True),
help="path were images will be versioned and cached",
default=os.getenv("TOIL_REGISTER_OPT", "/work/isabl/local/opt"),
default=os.getenv("TOIL_REGISTER_OPT", _DEFAULT_OPTDIR),
)
@click.option(
"--python",
Expand Down Expand Up @@ -189,14 +191,14 @@ def register_toil(
show_default=True,
type=click.Path(resolve_path=True, dir_okay=True),
help="path were executables will be linked to",
default=os.getenv("TOIL_REGISTER_BIN", "/work/isabl/local/bin"),
default=os.getenv("TOIL_REGISTER_BIN", _DEFAULT_BINDIR),
)
@click.option(
"--optdir",
show_default=True,
type=click.Path(resolve_path=True, dir_okay=True),
help="path were images will be versioned and cached",
default=os.getenv("TOIL_REGISTER_OPT", "/work/isabl/local/opt"),
default=os.getenv("TOIL_REGISTER_OPT", _DEFAULT_OPTDIR),
)
@click.option(
"--tmpvar",
Expand Down
2 changes: 1 addition & 1 deletion tests/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from register_toil import cli


def __test_register_toil(tmpdir):
def test_register_toil(tmpdir):
"""Sample test for register_toil command."""
runner = CliRunner()
optdir = tmpdir.mkdir("opt")
Expand Down

0 comments on commit c26bd9e

Please sign in to comment.