Skip to content
Snippets Groups Projects
Commit abfb6ace authored by Doucet, Mathieu's avatar Doucet, Mathieu
Browse files

Example python code that should work within MantidPlot. Re #1415

parent 3810b182
No related branches found
No related tags found
No related merge requests found
"""
TestClass
"""
class TestClass:
CLASS_DATA_MEMBER = 1
if __name__ == "__main__":
if TestClass.CLASS_DATA_MEMBER==1:
print "SUCCESS"
else:
print "Complete failure"
\ No newline at end of file
"""
When run within Mantiplot, this script should print SUCCESS
"""
from TestClass import *
if TestClass.CLASS_DATA_MEMBER==1:
print "SUCCESS"
else:
print "Complete failure"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment