Skip to content

Commit

Permalink
Move addon files into subfolder
Browse files Browse the repository at this point in the history
Move the addon files into a subfolder to keep the repository's root folder clean.
  • Loading branch information
Kumodatsu committed Nov 3, 2021
1 parent 9dfb29e commit e449646
Show file tree
Hide file tree
Showing 70 changed files with 17 additions and 0 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
17 changes: 17 additions & 0 deletions update.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import os
import shutil
import sys

addon_folder = "CharacterSheet"

def update(addons_path):
target_path = os.path.join(addons_path, addon_folder)
if os.path.exists(target_path):
shutil.rmtree(target_path)
shutil.copytree(addon_folder, target_path)

if __name__ == "__main__":
if len(sys.argv) != 2:
print("Specify the path to your addon folder")
exit()
update(sys.argv[1])

0 comments on commit e449646

Please sign in to comment.