github-gitea-mirror/repoForked.py

16 lines
365 B
Python
Raw Normal View History

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