Oct-03-2018, 12:48 PM
(Oct-03-2018, 12:10 PM)JP_ROMANO Wrote: Scratch that last entry. Somebody from my engineering team just sent me a .ini to use which allowed me to proceed. The code you posted worked! Python can actually import the contents of a file!
I would suggest not to use the word
import
when you talk about reading(loading) file. import
in Python is a reserved keyword, referring to loading module(s)/API(s), and improper use may confuse the potential reader.
Test everything in a Python shell (iPython, Azure Notebook, etc.)
- Someone gave you an advice you liked? Test it - maybe the advice was actually bad.
- Someone gave you an advice you think is bad? Test it before arguing - maybe it was good.
- You posted a claim that something you did not test works? Be prepared to eat your hat.