Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
CursedPrograms committed Feb 8, 2024
1 parent c0a8d92 commit 9e5bd6c
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
13 changes: 13 additions & 0 deletions config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"Config": {
"AppName": "Gender Age ID",
"Description": "",
"ProjectStructure": {
"MainScript": "main.py",
"DependenciesScript": "scripts/install-dependencies.py"
},
"Scripts": {

}
}
}
10 changes: 9 additions & 1 deletion main.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@
import os
import subprocess
import json

def main():
print("Python Project")
with open('config.json') as json_file:
config_data = json.load(json_file)

# Get the project name from the JSON data
app_name = config_data.get('Config', {}).get('AppName', 'default_app')

# Print the actual app name value
print(app_name)

scripts = {
"1": {
Expand Down

0 comments on commit 9e5bd6c

Please sign in to comment.