Skip to content

Commit

Permalink
Update to v1.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
HubTou authored Aug 13, 2021
1 parent 32f49d6 commit 2087598
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/fortune/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
import strfile

# Version string used by the what(1) and ident(1) commands:
ID = "@(#) $Id: fortune - print a random, hopefully interesting, adage v1.0.0 (August 9, 2021) by Hubert Tournier $"
ID = "@(#) $Id: fortune - print a random, hopefully interesting, adage v1.0.0 (August 11, 2021) by Hubert Tournier $"

# Default parameters. Can be overcome by environment variables, then command line options
parameters = {
Expand Down Expand Up @@ -125,8 +125,13 @@ def process_environment_variables():
if os.path.isdir(pnu_fortune_path):
parameters["Path"].append(pnu_fortune_path)

pnu_fortune_path2=sys.executable.replace("python.exe", "share" + os.sep + "games" + os.sep + "fortune")
if os.path.isdir(pnu_fortune_path2):
parameters["Path"].append(pnu_fortune_path2)

if len(parameters["Path"]) == 0:
logging.critical("No fortune databases directories found")
display_help()
sys.exit(1)

# UNUSED:
Expand Down

0 comments on commit 2087598

Please sign in to comment.