File tree Expand file tree Collapse file tree 6 files changed +14
-9
lines changed Expand file tree Collapse file tree 6 files changed +14
-9
lines changed Original file line number Diff line number Diff line change 15
15
from marshmallow import fields , pre_dump , pre_load
16
16
from pprint import pprint
17
17
18
- sys .path .insert (0 , '/home/david/wprdc-etl' ) # A path that we need to import code from
18
+ from parameters .local_parameters import PATH_TO_PIPELINE
19
+ sys .path .insert (0 , PATH_TO_PIPELINE )
19
20
import pipeline as pl # This comes from the wprdc-etl repository.
20
21
21
22
from notify import send_to_slack
Original file line number Diff line number Diff line change 15
15
from marshmallow import fields , pre_dump , pre_load
16
16
from pprint import pprint
17
17
18
- sys .path .insert (0 , '/home/david/wprdc-etl' ) # A path that we need to import code from
18
+ from parameters .local_parameters import PATH_TO_PIPELINE
19
+ sys .path .insert (0 , PATH_TO_PIPELINE )
19
20
import pipeline as pl # This comes from the wprdc-etl repository.
20
21
21
22
from notify import send_to_slack
Original file line number Diff line number Diff line change 7
7
8
8
from datetime import datetime
9
9
10
- sys .path .insert (0 , '/home/david/wprdc-etl' ) # A path that we need to import code from
11
- import pipeline as pl
10
+ from parameters .local_parameters import PATH_TO_PIPELINE
11
+ sys .path .insert (0 , PATH_TO_PIPELINE )
12
+ import pipeline as pl # This comes from the wprdc-etl repository.
12
13
13
14
from marshmallow import fields , post_load , pre_load
14
15
from collections import OrderedDict , defaultdict
Original file line number Diff line number Diff line change 14
14
import datetime
15
15
from marshmallow import fields , pre_dump , pre_load
16
16
17
- sys .path .insert (0 , '/home/david/wprdc-etl' ) # A path that we need to import code from
17
+ from parameters .local_parameters import PATH_TO_PIPELINE
18
+ sys .path .insert (0 , PATH_TO_PIPELINE )
18
19
import pipeline as pl # This comes from the wprdc-etl repository.
19
20
20
21
from fetch_terminals import pull_terminals , csv_file_path
Original file line number Diff line number Diff line change 16
16
from collections import OrderedDict , defaultdict
17
17
from pprint import pprint
18
18
19
- sys . path . insert ( 0 , '/home/david/wprdc-etl' ) # A path that we need to import code from
20
- import pipeline as pl
21
-
19
+ from parameters . local_parameters import PATH_TO_PIPELINE
20
+ sys . path . insert ( 0 , PATH_TO_PIPELINE )
21
+ import pipeline as pl # This comes from the wprdc-etl repository.
22
22
23
23
class SplitTransactionsSchemaUp (BaseTransactionsSchema ):
24
24
"""The split transactions schema handles the case where transactions are to be split between
Original file line number Diff line number Diff line change 11
11
12
12
from parameters .local_parameters import SETTINGS_FILE , base_monthly_meters_archive
13
13
14
- sys .path .insert (0 , '/home/david/wprdc-etl' ) # A path that we need to import code from
14
+ from parameters .local_parameters import PATH_TO_PIPELINE
15
+ sys .path .insert (0 , PATH_TO_PIPELINE )
15
16
import pipeline as pl # This comes from the wprdc-etl repository.
16
17
17
18
server = "meters-etl"
You can’t perform that action at this time.
0 commit comments