-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
general: use python2 (sys.executable), not python (PEP 394)
Hopefully there is no major roadblock making this change unreasonable at this point in time (checked commonly used RHEL, Fedora, Debian/Ubuntu -- the latter also for seamless integration with Travis CI). Signed-off-by: Jan Pokorný <[email protected]>
- Loading branch information
Showing
8 changed files
with
20 additions
and
18 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,16 @@ | ||
# -*- coding: UTF-8 -*- | ||
# Copyright 2014 Red Hat, Inc. | ||
# Copyright 2015 Red Hat, Inc. | ||
# Part of clufter project | ||
# Licensed under GPLv2+ (a copy included | http://gnu.org/licenses/gpl-2.0.txt) | ||
"""Machinery entry point -- to be run via python -m <package>""" | ||
"""Machinery entry point -- to be run via python{,2} -m <package>""" | ||
__author__ = "Jan Pokorný <jpokorny @at@ Red Hat .dot. com>" | ||
|
||
from os.path import basename | ||
from sys import argv, exit | ||
from sys import argv, executable, exit | ||
|
||
from .main import run | ||
|
||
if basename(argv[0]) == '__main__.py': | ||
argv[0] = 'python -m ' + __package__ | ||
# for help screens only, hence spaces allowed | ||
argv[0] = "{0} -m {1}".format(executable, __package__) | ||
exit(run(argv)) |
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
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