From 2a975123fce345a7f8c811e32b89a554d7b1477c Mon Sep 17 00:00:00 2001 From: Manuel Cortez Date: Wed, 16 Jan 2019 16:43:01 -0600 Subject: [PATCH] Modified paths module for dealing with installer data --- src/paths.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/paths.py b/src/paths.py index 31e899c..8153a74 100644 --- a/src/paths.py +++ b/src/paths.py @@ -3,6 +3,7 @@ from __future__ import unicode_literals import sys import platform import os +import glob #import logging from platform_utils import paths as paths_ @@ -13,6 +14,8 @@ directory = None fsencoding = sys.getfilesystemencoding() #log = logging.getLogger("paths") +if len(glob.glob("Uninstall.exe")) > 0: # installed copy + mode= "installed" def app_path(): return paths_.app_path()