Skip to content

Commit

Permalink
Add python3 support
Browse files Browse the repository at this point in the history
Since cpython 2 has bugs that won't be fixed on Windows, we have to move
to python 3

Change-Id: I4042246eabd9f81accf973c6624f10f3f4a31a81
Partial-Bug: #1737177
  • Loading branch information
Michal Clapinski committed Apr 17, 2018
1 parent 2ce1cc6 commit c415250
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions SConscript
Expand Up @@ -75,10 +75,8 @@ def genBuildVersion():
#endif /* __VR_BUILDINFO_H__ */
""" % { 'build': env.GetBuildVersion()[1] }
c_file = file(os.path.join(dp_dir, 'include/vr_buildinfo.h'), 'w')
c_file.write(h_code)
c_file.close()
return
with open(os.path.join(dp_dir, 'include/vr_buildinfo.h'), 'w') as c_file:
c_file.write(h_code)

if sys.platform.startswith('freebsd'):
make_dir = make_dir + '/freebsd'
Expand Down

0 comments on commit c415250

Please sign in to comment.