Skip to content

Instantly share code, notes, and snippets.

@thomasaarholt
Last active February 10, 2020 14:44
Show Gist options
  • Select an option

  • Save thomasaarholt/8969855d0d3a0b3e3b8769820a5481f2 to your computer and use it in GitHub Desktop.

Select an option

Save thomasaarholt/8969855d0d3a0b3e3b8769820a5481f2 to your computer and use it in GitHub Desktop.
# 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