From a5a3087283b7dd24f95195f16e09a6f245022f32 Mon Sep 17 00:00:00 2001 From: marcel Date: Wed, 2 Aug 2017 10:47:41 +0200 Subject: [PATCH] [add] system specific path SEPERATOR --- pylot/core/util/defaults.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pylot/core/util/defaults.py b/pylot/core/util/defaults.py index 287f8781..74f28f17 100644 --- a/pylot/core/util/defaults.py +++ b/pylot/core/util/defaults.py @@ -7,6 +7,8 @@ Created on Wed Feb 26 12:31:25 2014 """ import os +import platform + from pylot.core.loc import nll from pylot.core.loc import hyposat from pylot.core.loc import hypo71 @@ -29,6 +31,12 @@ def readFilterInformation(pylot_parameter): 'S': s_filter} return filter_information +# determine system dependent path separator +system_name = platform.system() +if system_name in ["Linux", "Darwin"]: + SEPARATOR = '/' +elif system_name == "Windows": + SEPARATOR = '\\' # suffix for phase name if not phase identified by last letter (P, p, etc.) ALTSUFFIX = ['diff', 'n', 'g', '1', '2', '3']