vault backup: 2025-03-04 11:12:06

This commit is contained in:
2025-03-04 11:12:06 +08:00
parent fd1b61cd3b
commit d1e51bfd2f
144 changed files with 0 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
```python
import os
import sys
config_name = 'myapp.cfg'
# determine if application is a script file or frozen exe
if getattr(sys, 'frozen', False):
application_path = os.path.dirname(sys.executable)
elif __file__:
application_path = os.path.dirname(__file__)
config_path = os.path.join(application_path, config_name)
```