Skip to content

Commit

Permalink
Merge pull request #52 from AI-Planning/haz-patch-1
Browse files Browse the repository at this point in the history
Fix to running setup the first time.
  • Loading branch information
haz authored Nov 26, 2021
2 parents ec4c87c + 46df4fe commit 6d6d113
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions planutils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,13 +96,14 @@ def main():
parser_upgrade = subparsers.add_parser('upgrade', help='upgrade all of the installed packages')

args = parser.parse_args()

minimal_setup()


if 'setup' == args.command:
setup()
return
else:
minimal_setup()

elif 'check-installed' == args.command:
if 'check-installed' == args.command:
from planutils.package_installation import check_installed
exit({True:0, False:1}[check_installed(args.package)])

Expand Down

0 comments on commit 6d6d113

Please sign in to comment.