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

Bug #949435 reported by Marc Tardif
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Checkbox
Fix Released
Low
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

Revision history for this message
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)
Changed in checkbox:
assignee: nobody → Jeff Lane (bladernr)
status: Confirmed → In Progress
Jeff Lane  (bladernr)
Changed in checkbox:
status: In Progress → Fix Committed
Ara Pulido (ara)
Changed in checkbox:
milestone: none → 0.13.5
Ara Pulido (ara)
Changed in checkbox:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.