Aug-27-2019, 09:39 AM
(This post was last modified: Aug-27-2019, 09:39 AM by newbieAuggie2019.)
(Aug-26-2019, 06:29 AM)fishhook Wrote:Hi!if option == "1": print("\nOkay, you have decided to work WITHOUT THE EUREKAPRINTER.\n\n") if option == "2": import eurekaprinter print("\nOkay, you have decided to work WITH THE EUREKAPRINTER.\n\n") eurekaprinter.print_eureka()
I was not sure what you meant with that (hey, I was so sleepy I didn't notice your line 5, where you import the eurekaprinter module), so when I noticed your line 5, I was not sure if it meant, leaving my line 9 (that's where I imported the module) in or out. I tried both ways (with my line 9 in and with my line 9 out) with your line 5, and both works, so I think your code is neater. Thanks!
All the best,
(Aug-26-2019, 07:34 PM)Skaperen Wrote: i ended up using the environment variable technique. it also lets me do it by setting that environment variable as i run the script.
Hi!
That's great! I have no idea about the environment variable technique, but I found your dilemma quite interesting, and I wanted to find out if, with my little knowledge, I could provide some thoughts or maybe a possible solution, even if it is not written with a neat piece of code.
Thanks for bringing in the problem! It was a nice challenge for me!
All the best,
newbieAuggie2019
"That's been one of my mantras - focus and simplicity. Simple can be harder than complex: You have to work hard to get your thinking clean to make it simple. But it's worth it in the end because once you get there, you can move mountains."
Steve Jobs
"That's been one of my mantras - focus and simplicity. Simple can be harder than complex: You have to work hard to get your thinking clean to make it simple. But it's worth it in the end because once you get there, you can move mountains."
Steve Jobs