Skip to content

Commit

Permalink
[#383] Addressed review comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
eoyilmaz committed Oct 9, 2024
1 parent d661363 commit 6c00bfb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion DisplayCAL/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,9 @@
pydir = os.path.normpath(os.path.join(exedir, "..", "Resources"))
else:
pyname, pyext = os.path.splitext(os.path.basename(pypath))
pydir = os.path.dirname(exe if isexe else os.path.abspath(__file__) + "/..")
pydir = os.path.dirname(
exe if isexe else os.path.abspath(os.path.dirname(__file__))
)

# TODO: Modifying ``data_dirs`` here was not an elegant solution, and it is not solving
# the problem either.
Expand Down
2 changes: 1 addition & 1 deletion DisplayCAL/wexpect.py
Original file line number Diff line number Diff line change
Expand Up @@ -2140,7 +2140,7 @@ def startChild(self, args, env):
dirname = os.path.dirname(
sys.executable
if getattr(sys, "frozen", False)
else os.path.abspath(__file__ + "/..")
else os.path.abspath(os.path.dirname(__file__))
)
if getattr(sys, "frozen", False):
logdir = appname
Expand Down

0 comments on commit 6c00bfb

Please sign in to comment.