ソースを参照

moved git2json down

Schultz 8 年 前
コミット
83e5320368
共有2 個のファイルを変更した6 個の追加2 個の削除を含む
  1. 2
    0
      execution.py
  2. 4
    2
      gitstats

+ 2
- 0
execution.py ファイルの表示

@@ -1,7 +1,9 @@
1 1
 import os
2 2
 import sys
3 3
 
4
+# NOTE: this files needs to be in same directory as gitstats executable
4 5
 # python execution.py <source folder> <output folder>
6
+
5 7
 def generateGitstatsOnFolders (): 
6 8
 	# print (sys.argv)
7 9
 

+ 4
- 2
gitstats ファイルの表示

@@ -1573,11 +1573,13 @@ class GitStats:
1573 1573
 
1574 1574
         outputpath = os.path.abspath(args[-1])
1575 1575
 
1576
-        # execute git2json for top files
1577
-        os.system("cd "+os.path.abspath(args[0])+" && git2json > '"+os.path.abspath(args[-1])+"/top_committed_files.json'")
1576
+       
1578 1577
 
1579 1578
         rundir = os.getcwd()
1580 1579
 
1580
+         # execute git2json for top files
1581
+        os.system("cd "+os.path.abspath(args[0])+" && git2json > '"+os.path.abspath(args[-1])+"/top_committed_files.json'")
1582
+
1581 1583
         try:
1582 1584
             os.makedirs(outputpath)
1583 1585
         except OSError: