Skip to content
This repository has been archived by the owner on Jan 28, 2022. It is now read-only.

Commit

Permalink
Fix path issues for all languages.
Browse files Browse the repository at this point in the history
  • Loading branch information
AeonLucid committed Jul 18, 2016
1 parent 1e1de07 commit 211c706
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions compile.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,12 @@
for filename in fnmatch.filter(filenames, '*.proto'):
proto_file = os.path.join(root, filename)
relative_file_path = proto_file.replace(proto_path, "")
relative_path = relative_file_path.replace(ntpath.basename(proto_file), "")

destination_path = os.path.abspath(out_path + relative_path)
if lang == "csharp":
relative_path = relative_file_path.replace(ntpath.basename(proto_file), "")
destination_path = os.path.abspath(out_path + relative_path)
else:
destination_path = os.path.abspath(out_path)

if not os.path.exists(destination_path):
os.makedirs(destination_path)
Expand Down

0 comments on commit 211c706

Please sign in to comment.