boncey / Flickr4Java

Java API For Flickr. Fork of FlickrJ
BSD 2-Clause "Simplified" License
176 stars 155 forks source link

Program won't run outside of IDLE #657

Closed CharlRae closed 2 years ago

CharlRae commented 2 years ago

Subject of the issue

Program won't run outside of IDLE

Your environment

Python 3.9.2

Steps to reproduce

` def life_loss_messages_create(): p_life_loss_messages = [] life_loss_messages_file = open("life_loss_messages.txt", "r")

for message_line in life_loss_messages_file:
    message_line.strip()
    this_line = message_line.split("-")
    p_life_loss_messages.append(this_line)
life_loss_messages_file.close()

return p_life_loss_messages

`

Expected behaviour

The sub program should return a 2D array using data from the text file

Actual behaviour

Program only executes properly in IDLE. If run by itself, it will exit the program as soon as the sub program is called.