So it seems like if 2 npp-python-scripts happen to use the same variables and function names, one script will over-write the others definitions.
We have the same problem when writing Ruby plugins for SketchUp - all plugins share the global environment. In Ruby we use modules as namespaces to help avoid method name conflicts.
This is probably more a fundamental Python question, but how can I "namespace" my variables and functions so as not to conflict with other npp-python-script plugins? I think maybe python classes can be used, although I don't need their inheritance if that would simplify things.
Thanks from a Ruby hobbyist and complete Python noob.
Log in to post a comment.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.