[add] system specific path SEPERATOR
This commit is contained in:
parent
c60c659608
commit
a5a3087283
@ -7,6 +7,8 @@ Created on Wed Feb 26 12:31:25 2014
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
import os
|
import os
|
||||||
|
import platform
|
||||||
|
|
||||||
from pylot.core.loc import nll
|
from pylot.core.loc import nll
|
||||||
from pylot.core.loc import hyposat
|
from pylot.core.loc import hyposat
|
||||||
from pylot.core.loc import hypo71
|
from pylot.core.loc import hypo71
|
||||||
@ -29,6 +31,12 @@ def readFilterInformation(pylot_parameter):
|
|||||||
'S': s_filter}
|
'S': s_filter}
|
||||||
return filter_information
|
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.)
|
# suffix for phase name if not phase identified by last letter (P, p, etc.)
|
||||||
ALTSUFFIX = ['diff', 'n', 'g', '1', '2', '3']
|
ALTSUFFIX = ['diff', 'n', 'g', '1', '2', '3']
|
||||||
|
Loading…
Reference in New Issue
Block a user