Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
James Campbell committed Aug 1, 2019
1 parent 0701586 commit 5c2f01e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions folders2json/folders2json.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
from .functions import GetFullPathFiles, GetDevices, GenerateJson, prep

__version__ = "1.1.0"
__version__ = "1.1.1"


def main():
args = prep(__version__) # get rootpath
fullnamefiles = GetFullPathFiles(args.rootpath) # get relative path files
devices = GetDevices(fullnamefiles, args.rootpath) # get devices for json
GenerateJson(devices, args.windows, fullnamefiles) # generate json file for each
GenerateJson(devices, args.windows, fullnamefiles) # generate json file


if __name__ == "__main__":
Expand Down
4 changes: 2 additions & 2 deletions folders2json/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ def GenerateJson(deviceiddict, win, fullpathfiles):
}
else:
finaldict["metadata"] = {
"objective": fullpathfiles[1].parts[0],
"batch": fullpathfiles[1].parts[1],
"objective": Path(fullpathfiles[1]).parts[0],
"batch": Path(fullpathfiles[1]).parts[1],
"device": key
}
finaldict["params"] = {}
Expand Down

0 comments on commit 5c2f01e

Please sign in to comment.