github-gitea-mirror/repoSource.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 repositorySource import repositorySource
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['repositorySource']:
log('Setting Up Mirror For Source Github Repository')
repositorySource()
log('Finished')