-
-
Notifications
You must be signed in to change notification settings - Fork 179
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Florian Wilhelm
authored and
Florian Wilhelm
committed
Jan 2, 2015
1 parent
a5fe370
commit ca3b1ab
Showing
5 changed files
with
56 additions
and
1 deletion.
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 |
---|---|---|
@@ -0,0 +1,40 @@ | ||
#!/usr/bin/env python | ||
# -*- coding: utf-8 -*- | ||
""" | ||
This is a skeleton Python that can serve as a starting point for a Python | ||
console script. To run this script uncomment the following line in the | ||
console_scripts section in setup.cfg: | ||
hello_world = ${package}.skeleton:run | ||
Then run `python setup.py install` which will install the command `hello_world` | ||
inside your current environment. | ||
Besides console scripts, the header (i.e. until _logger...) of this file can | ||
also be used as a template for Python modules. | ||
Note: This skeleton file can be safely removed if not needed! | ||
""" | ||
from __future__ import division, print_function, absolute_import | ||
|
||
import sys | ||
import logging | ||
|
||
__author__ = "${author}" | ||
__copyright__ = "${author}" | ||
__license__ = "${license}" | ||
|
||
_logger = logging.getLogger(__name__) | ||
|
||
|
||
def main(args): | ||
logging.basicConfig(level=logging.INFO, stream=sys.stdout) | ||
print("Hello World!") | ||
_logger.info("Script ends here") | ||
|
||
|
||
def run(): | ||
main(sys.argv[1:]) | ||
|
||
|
||
if __name__ == "__main__": | ||
run() |
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