Skip to content

Commit a4bef2c

Browse files
committed
remove print functions since os.getcwd() works
1 parent 20d8996 commit a4bef2c

2 files changed

Lines changed: 0 additions & 26 deletions

File tree

gnss_lib_py/utils/file_operations.py

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -37,22 +37,3 @@ def get_timestamp():
3737
"""
3838
timestamp = time.strftime("%Y%m%d%H%M%S")
3939
return timestamp
40-
41-
def print_directory_levels():
42-
"""Prints out file directory levels.
43-
44-
"""
45-
46-
printed_path = os.path.realpath(__file__)
47-
48-
for level in range(5):
49-
print(f"{level} level(s) up: {printed_path}")
50-
printed_path = os.path.dirname(printed_path)
51-
52-
def print_cwd():
53-
"""Prints out file directory levels.
54-
55-
"""
56-
57-
print("cwd:",os.getcwd())
58-
print("dir above cwd:",os.path.dirname(os.getcwd()))

tests/utils/test_file_operations.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,3 @@ def test_get_timestamp():
2020

2121
# timestamp should all be numeric characters
2222
assert timestamp.isnumeric()
23-
24-
def test_directory_printing():
25-
"""Test directory printing functions.
26-
27-
"""
28-
fo.print_directory_levels()
29-
fo.print_cwd()

0 commit comments

Comments
 (0)