Uploaded image for project: 'Snowstorm'
  1. Snowstorm
  2. STORM-937

Path to python in /scripts/*.py file inconsistent

    XMLWordPrintableJSON

Details

    • Defect
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • Viewer 2.6.0
    • Sprint 11
    • None
    • All
    • Code Review, Product Owner
    • Hide

      This is a build and test script change. If one of those was to fail, the build would fail miserably. So the test plan is "does it build on all platforms?":

      • For all platforms: download and install build
      • Launch and Login
        -> Verify the viewer is fine
      Show
      This is a build and test script change. If one of those was to fail, the build would fail miserably. So the test plan is "does it build on all platforms?": For all platforms: download and install build Launch and Login -> Verify the viewer is fine

    Description

      The first line of python files in the scripts folder uses 2 different forms:
      #!/usr/bin/python
      or
      #!/usr/bin/env python

      The first form doesn't work for instance in my cygwin install since I didn't install python there. The second is more flexible but requires the PATH to be specified.

      I'm not advocating one vs the other really (though I do prefer the 2nd one) but I think some consistency would prevent devs to bump into unexpected problems. I'm wondering if sldev developers have any opinion on this one.

      FWIW, indra/develop.py (likely the most used python script) is using the 2nd form.

      Attachments

        Activity

          People

            Unassigned Unassigned
            merov.linden Merov Linden
            Oz Linden Oz Linden
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour
                1h