github-gitea-mirror/repoForked.py

16 lines
365 B
Python
Raw Normal View History

2020-10-13 13:07:50 +08:00
import sys
2020-10-13 13:23:34 +08:00
import os
2020-10-12 20:43:37 +08:00
2020-10-13 13:23:34 +08:00
THIS_FOLDER = os.path.dirname(os.path.abspath(__file__))
sys.path.insert(1, "{0}/src/".format(THIS_FOLDER))
2020-10-12 20:43:37 +08:00
2020-10-13 13:07:50 +08:00
from helper import log,getConfig
from repositoryForked import repositoryForked
2020-10-12 20:43:37 +08:00
2020-10-13 13:07:50 +08:00
config = getConfig()
2020-10-12 20:43:37 +08:00
2020-10-13 13:07:50 +08:00
if config['repositoryForked']:
log('Setting Up Mirror For Forked Github Repository')
repositoryForked()
log('Finished')