Skip to content
This repository has been archived by the owner on May 16, 2023. It is now read-only.

Commit

Permalink
Always run from the relative parent directory
Browse files Browse the repository at this point in the history
This is mainly to prevent the bumper.py script from modifying the wrong
files if it is run from a different directory.

Addresses: #96 (comment)
  • Loading branch information
Crazybus committed Apr 17, 2019
1 parent c5289d5 commit 736e065
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion helpers/bumper.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import subprocess
import fileinput

os.chdir('../')
os.chdir(os.path.join(os.path.dirname(__file__), '..'))

versions = {
5: '5.6.16',
Expand Down
2 changes: 1 addition & 1 deletion helpers/release.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import subprocess
import yaml

os.chdir('..')
os.chdir(os.path.join(os.path.dirname(__file__), '..'))

bucket = 'gs://' + os.environ['GCS_BUCKET']

Expand Down

0 comments on commit 736e065

Please sign in to comment.