Skip to content

ibarbar1/Python-Scripting-Compile-Go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python Scripting Project

This project automates the process of:

  • Finding game directories in a source folder
  • Copying them to a target directory
  • Compiling any Go code inside those folders
  • Creating metadata as a JSON file

Features

Find Game Directories

  • Looks for folders whose names contain game (case-insensitive)

Copy Files

  • Copies all files and subfolders to the target directory
  • Supports repeated runs without errors (dirs_exist_ok=True)

Compile Go Code

  • Finds .go files in each copied folder
  • Runs go build to compile them

Generate Metadata

  • Saves a JSON file listing all games and their count

Requirements

  • Python 3.7+
  • Go installed and added to your system PATH

Usage

Run the script like this:

python get_game_data_test.py <source_folder> <target_folder> e.g python get_game_data_test.py data target

This will:

- Search data for game directories
- Copy them into target
- Compile Go code inside each copied folder
- Create metadata.json inside target

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •