Skip to content

Commit

Permalink
Fix to running setup the first time.
Browse files Browse the repository at this point in the history
  • Loading branch information
haz authored Nov 26, 2021
1 parent ec4c87c commit 46df4fe
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 46df4fe

Please sign in to comment.