Skip to content

Commit 9eeedf1

Browse files
committed
Remove guess_project_name function
This was only used to determine a project name from the YAML configuration file. Output file names for TOML configuration files are derived differently. Signed-off-by: John Pennycook <john.pennycook@intel.com>
1 parent c734ece commit 9eeedf1

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

bin/codebasin

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -16,27 +16,6 @@ from codebasin.walkers.platform_mapper import PlatformMapper
1616
version = "1.2.0"
1717

1818

19-
def guess_project_name(config_path):
20-
"""
21-
Guess a useful name from the given path so that we can pick
22-
meaningful filenames for output.
23-
"""
24-
fullpath = os.path.realpath(config_path)
25-
(thedir, thename) = os.path.split(fullpath)
26-
if config_path == "config.yaml":
27-
(base, end) = os.path.split(thedir)
28-
res = end.strip()
29-
else:
30-
(base, end) = os.path.splitext(thename)
31-
res = base.strip()
32-
if not res:
33-
logging.getLogger("codebasin").warning(
34-
"Can't guess meaningful output name from input",
35-
)
36-
res = "unknown"
37-
return res
38-
39-
4019
def main():
4120
# Read command-line arguments
4221
parser = argparse.ArgumentParser(

0 commit comments

Comments
 (0)