from os import path

root_path = '/home/openego/pf_results/' \
            'snapshot-clustering-results-k10-cyclic-withpypsaweighting/'

clustered_path = path.join(root_path, 'daily')

original_path = path.join(root_path, 'original')

plot_path = root_path

from os import path


root_path = path.join(path.expanduser('~'),'pf_results/' \
            'snapshot-clustering-results-k10-cyclic/')

clustered_path = path.join(root_path, 'daily')

original_path = path.join(root_path, 'original')

plot_path = root_path

Set path automatically to home of user
Set path automatically to home of user

  from os import path
  
- root_path = '/home/openego/pf_results/' \
+ 
+ root_path = path.join(path.expanduser('~'),'pf_results/' \
-             'snapshot-clustering-results-k10-cyclic-withpypsaweighting/'
+             'snapshot-clustering-results-k10-cyclic/')
  
  clustered_path = path.join(root_path, 'daily')
  
  original_path = path.join(root_path, 'original')
  
  plot_path = root_path
  
Set path automatically to home of user
## Code Before:
from os import path

root_path = '/home/openego/pf_results/' \
            'snapshot-clustering-results-k10-cyclic-withpypsaweighting/'

clustered_path = path.join(root_path, 'daily')

original_path = path.join(root_path, 'original')

plot_path = root_path

## Instruction:
Set path automatically to home of user
## Code After:
from os import path


root_path = path.join(path.expanduser('~'),'pf_results/' \
            'snapshot-clustering-results-k10-cyclic/')

clustered_path = path.join(root_path, 'daily')

original_path = path.join(root_path, 'original')

plot_path = root_path
