Skip to content

Commit

Permalink
Fix #56, add .gitignore file when creating project
Browse files Browse the repository at this point in the history
Will also add to imported projects, if there isn't one present already
  • Loading branch information
will-v-pi committed Aug 27, 2024
1 parent 35a78cc commit e099ca6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions scripts/pico_project.py
Original file line number Diff line number Diff line change
Expand Up @@ -751,6 +751,12 @@ def generateProjectFiles(projectPath, projectName, sdkPath, projects, debugger,

os.chdir(projectPath)

# Add a simple .gitignore file if there isn't one
if not os.path.isfile(".gitignore"):
file = open(".gitignore", "w")
file.write("build\n")
file.close()

debugger = debugger_config_list[debugger]

if debugger == "raspberrypi-swd.cfg":
Expand Down

0 comments on commit e099ca6

Please sign in to comment.