Last active
January 6, 2018 04:42
-
-
Save tonjadwyer/78e20355aad5af3c7194599bee5fbcba to your computer and use it in GitHub Desktop.
Pull a field calculator .cal file into a string
This file contains 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
def expression_from_cal(infile): | |
with open(infile, "rb") as data: | |
text = data.read().decode('utf-16-le') | |
print_msg(text) | |
return text.strip() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment