Skip to content

Commit c37c8ba

Browse files
committed
export CIF: fix access to template files
1 parent aa18a04 commit c37c8ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

GSASII/exports/G2export_CIF.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5598,7 +5598,7 @@ def _onResetTemplate(event):
55985598
# find default name for template
55995599
resetTemplate = None
56005600
localTemplate = None
5601-
for pth in sys.path: # -- search with default name
5601+
for pth in [os.path.dirname(__file__)]+sys.path: # -- search with default name
56025602
fil = os.path.join(pth,templateDefName)
56035603
if os.path.exists(fil):
56045604
resetTemplate = fil

0 commit comments

Comments
 (0)