Nov-19-2018, 03:22 AM
(Nov-19-2018, 12:15 AM)Skaperen Wrote: if i do it with a setup function, how will the importee/module define things in the importer's global space?
With a return value, just like you showed. Though I was thinking something much simpler:
import debugtoys pf,pr,pv,sl = debugtoys.set_up(debug = True)
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures