File size: 1,512 Bytes
e020674
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
import os
from pathlib import Path
import appdirs

class DataFlowPath:
    """
    Class to manage paths for DataFlow.
    """


    @staticmethod
    def get_dataflow_dir():
        # return path of /dataflow
        return Path(__file__).parent.parent 

    # @staticmethod
    # def get_dataflow_scripts_dir():
        # return DataFlowPath.get_dataflow_dir() / "scripts"

    @staticmethod
    def get_dataflow_example_dir():
        return DataFlowPath.get_dataflow_dir() / "example"
    
    @staticmethod
    def get_dataflow_statics_dir():
        return DataFlowPath.get_dataflow_dir() / "statics"
    
    @staticmethod
    def get_dataflow_pipelines_dir():
        return DataFlowPath.get_dataflow_statics_dir() / "pipelines"
    
    @staticmethod
    def get_dataflow_playground_dir():
        return DataFlowPath.get_dataflow_statics_dir() / "playground"
    
    @staticmethod
    def get_dataflow_agentscript_dir():
        return DataFlowPath.get_dataflow_statics_dir() / "dataflow_agent"
    
    @staticmethod
    def get_dataflow_agent_dir():
        return DataFlowPath.get_dataflow_dir() / "agent"
    
    # @staticmethod
    # def get_dataset_json_dir() -> Path:
    #     return DataFlowPath.get_dataflow_dir() / "dataset_json"

    # @staticmethod
    # def get_init_base_dir() -> Path:
    #     return DataFlowPath.get_dataflow_dir() / "init_base"

    # @staticmethod
    # def get_model_zoo_runs_dir() -> Path:
    #     return DataFlowPath.get_dataflow_dir() / "model_zoo" / "runs"