Last active
February 10, 2020 14:44
-
-
Save thomasaarholt/8969855d0d3a0b3e3b8769820a5481f2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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