We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c8a46b0 commit 88fca4aCopy full SHA for 88fca4a
GSASII/GSASIIscriptable.py
@@ -141,7 +141,20 @@ def ShowVersions():
141
except:
142
out += "GSAS-II location: not set\n"
143
try:
144
- out += f"Binary location: {GSASIIpath.binaryPath}\n"
+ if GSASIIpath.binaryPath is None:
145
+ from . import pyspg
146
+ loc = os.path.dirname(pyspg.__file__)
147
+ else:
148
+ loc = GSASIIpath.binaryPath
149
+ try:
150
+ f = os.path.join(loc,'GSASIIversion.txt')
151
+ with open(f,'r') as fp:
152
+ version = fp.readline().strip()
153
+ vnum = fp.readline().strip()
154
+ dated = f'{vnum}, {version}'
155
+ except:
156
+ dated = 'undated'
157
+ out += f"Binary location: {loc} ({dated})\n"
158
159
out += "Binary location: not found\n"
160
return out
0 commit comments