Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix system variable error #9

Merged
merged 1 commit into from
May 2, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions src/proabc_2/__init__.py
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
import os

HMMER_PATH = os.environ["HMMER_PATH"]
IGBLAST_PATH = os.environ["IGBLAST_PATH"]
IGDATA = os.environ["IGDATA"]
HMMER_PATH = os.environ.get("HMMER_PATH")
IGBLAST_PATH = os.environ.get("IGBLAST_PATH")
IGDATA = os.environ.get("IGDATA")

HELP_MSG = "Please check the installation instructions at <https://github.com/haddocking/proabc-2>"
HELP_MSG = "Check the installation instructions of THIRD-PARTY dependencies at `https://github.com/haddocking/proabc-2`"

if HMMER_PATH is None:
_msg = "Please set the HMMER_PATH environment variable" + os.newline + HELP_MSG
_msg = "Please set the HMMER_PATH environment variable" + os.linesep + HELP_MSG
print(_msg)
exit(1)

if IGBLAST_PATH is None:
_msg = "Please set the IGBLAST_PATH environment variable" + os.newline + HELP_MSG
_msg = "Please set the IGBLAST_PATH environment variable" + os.linesep + HELP_MSG
print(_msg)
exit(1)

if IGDATA is None:
_msg = "Please set the IGDATA environment variable" + os.newline + HELP_MSG
_msg = "Please set the IGDATA environment variable" + os.linesep + HELP_MSG
print(_msg)
exit(1)
Loading