Skip to content Skip to sidebar Skip to footer

In Python, How Can I Include (not Import) One File Within Another File, Macro Style, Without Changing Namespace?

First I do know about 'import'. When I try 'import' it doesn't work. What I'm trying to do is split a single module into two parts, one of which is editable by a group and the ot

Solution 1:

This can be done with execfile(), but you should consider using some other mechanism for this instead such as polymorphism or plugins.


Post a Comment for "In Python, How Can I Include (not Import) One File Within Another File, Macro Style, Without Changing Namespace?"