Scripts should not refer to os.environ["CHECKBOX_SHARE"] to run standalone

Bug #949435 reported by Marc Tardif on 2012-03-07
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Jeff Lane

Bug Description

The scripts xrandr_cycle and gpu_test refer to the CHECKBOX_SHARE environment variable for the path to the data directory. The problem is that this makes them hard to run standalone from the command line by forcing the user to set the environment accordingly. Instead, the scripts should use the path to themselves to determine the relative path to the data directory which will always be in ../data in the source and when installed.

Related branches

Jeff Lane (bladernr) wrote :

Yes indeed... scripts that wont work stand-alone really annoy me :/

Changed in checkbox:
status: New → Confirmed
importance: Undecided → Low
Jeff Lane (bladernr) on 2012-03-08
Changed in checkbox:
assignee: nobody → Jeff Lane (bladernr)
status: Confirmed → In Progress
Jeff Lane (bladernr) on 2012-03-08
Changed in checkbox:
status: In Progress → Fix Committed
Ara Pulido (ara) on 2012-03-15
Changed in checkbox:
milestone: none → 0.13.5
Ara Pulido (ara) on 2012-03-22
Changed in checkbox:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers