Sep-22-2019, 06:32 PM
If the listCWD function definition is not in the if __name__ block, you should be able to run it like this:
If that does not solve your problem, please post some just enough runnable code to replicate the error, along with the full text of any error message.
import listCWD whatever = listCWD.listCWD()Remember, you want the definition outside the if __name__ block, and the actual call to it inside the if __name__ block.
If that does not solve your problem, please post some just enough runnable code to replicate the error, along with the full text of any error message.
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