From 3c29edcd6cd14deb9692751aacdef687450a6c66 Mon Sep 17 00:00:00 2001 From: AD Date: Mon, 28 Jan 2019 11:17:25 +0100 Subject: [PATCH] fix dynamic package paths --- cx_setup.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/cx_setup.py b/cx_setup.py index 541cfa8..24aaf7a 100644 --- a/cx_setup.py +++ b/cx_setup.py @@ -2,16 +2,16 @@ """Setup config for cx_freeze (built)""" -# import os.path +import os.path from cx_Freeze import setup, Executable # Derive Package Paths Dynamically -# PYTHON_INSTALL_DIR = os.path.dirname( -# os.path.dirname(os.__file__)) -# os.environ['TCL_LIBRARY'] = os.path.join( -# PYTHON_INSTALL_DIR, 'tcl', 'tcl8.6') -# os.environ['TK_LIBRARY'] = os.path.join -# (PYTHON_INSTALL_DIR, 'tcl', 'tk8.6') +PYTHON_INSTALL_DIR = os.path.dirname( + os.path.dirname(os.__file__)) +os.environ['TCL_LIBRARY'] = os.path.join( + PYTHON_INSTALL_DIR, 'tcl', 'tcl8.6') +os.environ['TK_LIBRARY'] = os.path.join( + PYTHON_INSTALL_DIR, 'tcl', 'tk8.6') VERSION_DICT = {} with open("tagmaps/version.py") as fp: @@ -39,7 +39,7 @@ '00_generateClusters_OnlyEmoji.cmd', '00_generateClusters_OnlyPhotoLocations.cmd', '00_generateClusters_OnlyTags.cmd', - ('./tagmaps/matplotlibrc', + ('tagmaps/matplotlibrc', "matplotlibrc") ] PACKAGES_MOD = ["tkinter", "hdbscan"]