-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #59 from astronomy-commons/delucchi/docs
Add console entry points for import tool.
- Loading branch information
Showing
4 changed files
with
17 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,7 @@ | ||
"""Main method to enable command line execution""" | ||
|
||
import sys | ||
|
||
import hipscat_import.run_import as runner | ||
from hipscat_import.command_line_arguments import parse_command_line | ||
from hipscat_import.control import main | ||
|
||
if __name__ == "__main__": | ||
runner.run(parse_command_line(sys.argv[1:])) | ||
main() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
"""Flow control and scripting entry points.""" | ||
import sys | ||
|
||
import hipscat_import.run_import as runner | ||
from hipscat_import.command_line_arguments import parse_command_line | ||
|
||
|
||
def main(): | ||
"""Wrapper of main for setuptools.""" | ||
runner.run(parse_command_line(sys.argv[1:])) |