@@ -23,14 +23,7 @@ def initialize_skyline(args):
23
23
"""
24
24
from skyline .config import Config
25
25
26
- project_root = os .getcwd ()
27
- entry_point = args .entry_point
28
- if not _validate_paths (project_root , entry_point ):
29
- sys .exit (1 )
30
-
31
26
Config .parse_args (args )
32
- Config .set_project_paths (project_root , entry_point )
33
-
34
27
35
28
def _configure_logging (args ):
36
29
kwargs = {
@@ -76,34 +69,3 @@ def _validate_gpu():
76
69
)
77
70
return False
78
71
return True
79
-
80
-
81
- def _validate_paths (project_root , entry_point ):
82
- if not os .path .isabs (project_root ):
83
- logger .error (
84
- "The project root that Skyline received is not an absolute path. "
85
- "This is an unexpected error. Please report a bug."
86
- )
87
- logger .error ("Current project root: %s" , project_root )
88
- return False
89
-
90
- if os .path .isabs (entry_point ):
91
- logger .error (
92
- "The entry point must be specified as a relative path to the "
93
- "current directory. Please double check that the entry point you "
94
- "are providing is a relative path." ,
95
- )
96
- logger .error ("Current entry point path: %s" , entry_point )
97
- return False
98
-
99
- full_path = os .path .join (project_root , entry_point )
100
- if not os .path .isfile (full_path ):
101
- logger .error (
102
- "Either the specified entry point is not a file or its path was "
103
- "specified incorrectly. Please double check that it exists and "
104
- "that its path is correct." ,
105
- )
106
- logger .error ("Current absolute path to entry point: %s" , full_path )
107
- return False
108
-
109
- return True
0 commit comments