Skip to content

Commit 8809673

Browse files
MNT: update icons path for local development_mode.
1 parent 03c99ea commit 8809673

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

src/diffpy/pdfgui/gui/pdfguiglobals.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,13 @@
3737

3838
# Requirement must have egg-info. Do not use in _development_mode.
3939
_req = Requirement.parse("diffpy.pdfgui")
40+
41+
#pavol
4042
# APPDATADIR = (os.path.dirname(_upbasedir) if _development_mode
4143
# else resource_filename(_req, ""))
44+
#long
4245
if _development_mode:
43-
APPDATADIR = os.path.dirname(_upbasedir)
46+
APPDATADIR = os.path.dirname(_mydir)
4447
else:
4548
APPDATADIR = os.path.join(resource_filename(_req, ""), "diffpy/pdfgui")
4649

@@ -64,6 +67,10 @@ def iconpath(iconfilename):
6467
Return string.
6568
"""
6669
rv = os.path.join(APPDATADIR, 'icons', iconfilename)
70+
print("APPDATADIR")
71+
print(APPDATADIR)
72+
print("rv")
73+
print(rv)
6774
assert os.path.isfile(rv), "icon file does not exist"
6875
return rv
6976

0 commit comments

Comments
 (0)