Skip to content
Snippets Groups Projects
Commit 75404741 authored by Johannes Zumthurm's avatar Johannes Zumthurm
Browse files

where am i?

parent 12c66c6a
No related branches found
No related tags found
1 merge request!677Gitlab ci
Pipeline #287445 failed
# wait_for_mongodb.py
import os
import socket
import time
......@@ -14,5 +15,12 @@ def wait_for_mongodb(host='mongodb', port=27017):
print("Waiting for MongoDB on port 27017...")
time.sleep(1)
def print_working_directory():
print("Current working directory:", os.getcwd())
print("Files in the working directory:")
for filename in os.listdir(os.getcwd()):
print("-", filename)
if __name__ == "__main__":
print_working_directory()
wait_for_mongodb()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment