Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -62,7 +62,7 @@ def configure_skidl_libs():
|
|
| 62 |
logger.info("Set dummy KiCad environment variables to suppress warnings")
|
| 63 |
|
| 64 |
def cleanup_old_files():
|
| 65 |
-
"""Clean up temporary files older than
|
| 66 |
temp_dir = tempfile.gettempdir()
|
| 67 |
for f in os.listdir(temp_dir):
|
| 68 |
if f.endswith('.net') and os.path.getmtime(os.path.join(temp_dir, f)) < time.time() - 3600:
|
|
|
|
| 62 |
logger.info("Set dummy KiCad environment variables to suppress warnings")
|
| 63 |
|
| 64 |
def cleanup_old_files():
|
| 65 |
+
"""Clean up temporary files older than 1 hour."""
|
| 66 |
temp_dir = tempfile.gettempdir()
|
| 67 |
for f in os.listdir(temp_dir):
|
| 68 |
if f.endswith('.net') and os.path.getmtime(os.path.join(temp_dir, f)) < time.time() - 3600:
|