diff --git a/example.py b/example.py index 683f87d..b12d83a 100644 --- a/example.py +++ b/example.py @@ -6,13 +6,13 @@ def main(): # Some example code to test the functionality testpy = mfp.require("test") testpy.st = "Hello world" - testpy.echo() + testpy.echo() # "Hello world" testpy["st"] = "Hello world 2" - testpy.echo() + testpy.echo() # "Hello world 2" testpy = mfp.require("test") - testpy.echo() + testpy.echo() # Will still be "Hello world 2", since the library has been required before. testpy = mfp.dofile(mfp.p(mfp.sd,"module","test.py")) # Same file as used for mfp.require - testpy.echo() + testpy.echo() # Will be None, as it's a new instance of the library (dofile does not care) def bootstrap(name,modName): if name in globals(): return @@ -32,4 +32,4 @@ def bootstrap(name,modName): bootstrap("mfp","me.fier.python") init() if __name__ == '__main__': - main() \ No newline at end of file + main()