Skip to content

Commit

Permalink
Update make.py
Browse files Browse the repository at this point in the history
  • Loading branch information
kwagyeman authored Nov 17, 2020
1 parent 41510ad commit ecdc725
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions make.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ def make():
with open(os.path.join(installdir, "README.txt"), 'w') as f:
f.write("Please run setup.sh to install OpenMV IDE dependencies... e.g.\n\n")
f.write("./setup.sh\n\n")
f.write("source ~/.bashrc\n\n")
f.write("source ~/.profile\n\n")
f.write("./bin/openmvide\n\n")
# Add setup.sh...
with open(os.path.join(installdir, "setup.sh"), 'w') as f:
Expand All @@ -167,11 +167,11 @@ def make():
f.write("sudo cp $( dirname \"$0\" )/share/qtcreator/pydfu/50-openmv.rules /etc/udev/rules.d/50-openmv.rules\n")
f.write("sudo udevadm control --reload-rules\n\n")
f.write("if [ -z \"${QT_QPA_PLATFORM}\" ]; then\n")
f.write(" echo >> ~/.bashrc\n")
f.write(" echo \"# Force Qt Apps to use xcb\" >> ~/.bashrc\n")
f.write(" echo \"export QT_QPA_PLATFORM=xcb\" >> ~/.bashrc\n")
f.write(" echo >> ~/.profile\n")
f.write(" echo \"# Force Qt Apps to use xcb\" >> ~/.profile\n")
f.write(" echo \"export QT_QPA_PLATFORM=xcb\" >> ~/.profile\n")
f.write(" echo\n")
f.write(" echo Please type \"source ~/.bashrc\".\n")
f.write(" echo Please type \"source ~/.profile\".\n")
f.write("fi\n\n")
f.write("# Make sure hard linked libts library is there\n\n")
f.write("LINK=/usr/lib/arm-linux-gnueabihf/libts-0.0.so.0\n")
Expand Down

0 comments on commit ecdc725

Please sign in to comment.