Package dsc_suite :: Package tools :: Module toolpaths
[hide private]
[frames] | no frames]

Source Code for Module dsc_suite.tools.toolpaths

 1  """module toolpaths 
 2  This module sets the paths for the standard folders needed for the GUI. The paths are created from the path of the module dsc. You can change the path by creating your own structure, but make sure the paths are correct and the folders exists. 
 3  Warning: Leave the structure of the DSC program intact! The program will raise an exception if the folders do not exist.  
 4  """ 
 5   
 6  import os 
 7  # folders without ending slash, only names 
 8   
 9  path_of_toolpaths_py = os.path.realpath(__file__) 
10   
11  #path_cwd = os.getcwd() 
12  path_cwd = os.path.split(path_of_toolpaths_py)[0] 
13  path_cwd = os.path.split(path_cwd)[0] 
14  path_cwd = os.path.split(path_cwd)[0] 
15  path_cwd = os.path.split(path_cwd)[0] 
16   
17  """FOLDER_FOR_BENCHMARKS  
18  The path to the standard folder where the benchmark files are saved.  
19  """ 
20  FOLDER_FOR_PLOTS = os.path.join(path_cwd, 'plots') 
21   
22  """FOLDER_FOR_DATA  
23  The path to the standard folder where the generated data files are saved.  
24  """ 
25  FOLDER_FOR_DATA = os.path.join(path_cwd, 'data')  
26   
27  """FOLDER_FOR_PLOTS 
28  The path to the standard folder where the benchmark files are saved. 
29  """ 
30  FOLDER_FOR_BENCHMARKS = os.path.join(path_cwd, 'benchmarks') 
31