Skip to content

Commit

Permalink
Improved
Browse files Browse the repository at this point in the history
  • Loading branch information
varunsridharan committed Oct 13, 2020
1 parent 9067fe8 commit 0ba8015
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ Or you can download the source code and install it where ever you need
## Cron Setup
1. Run `crontab -e`
2. `mkdir $HOME/mirrorLogs -p`
2. `/usr/bin/python3 $HOME/github-to-gitea-mirror/mirror.py > $HOME/mirrorLogs/`date +\%Y-\%m-\%d-\%H-\%M-\%S`.log 2>&1`
3. `/usr/bin/python3 $HOME/github-to-gitea-mirror/mirror.py > $HOME/mirrorLogs/`date +\%Y-\%m-\%d-\%H-\%M-\%S`.log 2>&1`

---

Expand Down
4 changes: 3 additions & 1 deletion gist.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import sys
import os

sys.path.insert(1, './src/')
THIS_FOLDER = os.path.dirname(os.path.abspath(__file__))
sys.path.insert(1, "{0}/src/".format(THIS_FOLDER))

from helper import getConfig,log
from gistsSource import gistsSource
Expand Down
4 changes: 3 additions & 1 deletion giststared.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import sys
import os

sys.path.insert(1, './src/')
THIS_FOLDER = os.path.dirname(os.path.abspath(__file__))
sys.path.insert(1, "{0}/src/".format(THIS_FOLDER))

from helper import log,getConfig
from gistsStared import gistsStared
Expand Down
4 changes: 3 additions & 1 deletion repositoryForked.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import sys
import os

sys.path.insert(1, './src/')
THIS_FOLDER = os.path.dirname(os.path.abspath(__file__))
sys.path.insert(1, "{0}/src/".format(THIS_FOLDER))

from helper import log,getConfig
from repositoryForked import repositoryForked
Expand Down
4 changes: 3 additions & 1 deletion repositorySource.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import sys
import os

sys.path.insert(1, './src/')
THIS_FOLDER = os.path.dirname(os.path.abspath(__file__))
sys.path.insert(1, "{0}/src/".format(THIS_FOLDER))

from helper import log,getConfig
from repositorySource import repositorySource
Expand Down
4 changes: 3 additions & 1 deletion repositoryStared.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import sys
import os

sys.path.insert(1, './src/')
THIS_FOLDER = os.path.dirname(os.path.abspath(__file__))
sys.path.insert(1, "{0}/src/".format(THIS_FOLDER))

from helper import log,getConfig
from repositoryStared import repositoryStared
Expand Down

0 comments on commit 0ba8015

Please sign in to comment.