diff --git a/frappy/lib/__init__.py b/frappy/lib/__init__.py index 069239d..7cab1d3 100644 --- a/frappy/lib/__init__.py +++ b/frappy/lib/__init__.py @@ -21,6 +21,7 @@ # ***************************************************************************** """Define helpers""" +import os import importlib import linecache import socket @@ -70,7 +71,7 @@ class GeneralConfig: if path.splitext(sys.executable)[1] == ".exe" and not path.basename(sys.executable).startswith('python'): # special MS windows environment cfg.update(piddir='./', logdir='./log', confdir='./') - elif path.exists(path.join(repodir, '.git')): + elif path.exists(path.join(repodir, '.git')) or os.sep == '\\': # for hands on session # running from git repo cfg['confdir'] = path.join(repodir, 'cfg') # take logdir and piddir from /cfg/generalConfig.cfg