Fixed logging under live macOS
This commit is contained in:
parent
e1943b9fb4
commit
c7d57ff266
1 changed files with 4 additions and 1 deletions
|
|
@ -13,7 +13,10 @@ from wk.io import non_clobber_path
|
|||
|
||||
|
||||
# STATIC VARIABLES
|
||||
if os.name == 'nt':
|
||||
if os.path.exists('/.wk-live-macos'):
|
||||
# Workaround for live macOS env
|
||||
DEFAULT_LOG_DIR = '/var/log/WizardKit'
|
||||
elif os.name == 'nt':
|
||||
# Example: "C:\WK\1955-11-05\WizardKit"
|
||||
DEFAULT_LOG_DIR = (
|
||||
f'{os.environ.get("SYSTEMDRIVE", "C:")}/'
|
||||
|
|
|
|||
Loading…
Reference in a new issue