File: doris_parameters_path.py

package info (click to toggle)
doris 5.0.3~beta%2Bdfsg-19
  • links: PTS, VCS
  • area: contrib
  • in suites: forky, sid
  • size: 6,944 kB
  • sloc: cpp: 43,560; python: 8,213; csh: 3,636; sh: 2,527; ansic: 649; makefile: 337; xml: 208
file content (12 lines) | stat: -rw-r--r-- 412 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
import os
import sys


class DorisParameters_Path(object):

    def set(self, doris_parameters_path):
            if(os.path.exists(doris_parameters_path)):
                sys.path.append(os.path.split(doris_parameters_path)[0])
                print('dorisparameter path: ' + doris_parameters_path)
            else:
                print('dorisparameter path: ' + doris_parameters_path + ' not a valid path')