Skip to content

Instantly share code, notes, and snippets.

@thomasaarholt thomasaarholt/GMS.py
Last active Feb 10, 2020

Embed
What would you like to do?
# Content of script run in GMS
import sys
sys.path.append(r"C:\Users\thomasaar\Documents\GMS Scripts")
import thomas
from importlib import reload
reload(thomas)
thomas.helloworld()
# Content of thomas.py in GMS Scripts folder
import DigitalMicrograph as DM
def helloworld():
print(DM)
# Output in GMS output window:
<module 'DigitalMicrograph' from 'C:\\Program Files\\Gatan\\PlugIns\\DigitalMicrograph.py'>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.