Skip to content

Commit

Permalink
Merge pull request #7 from jamienoss/fix-windows-env-home-ref
Browse files Browse the repository at this point in the history
os.env['HOME'] -> os.path.expanduser('~') for Windows compatibility
  • Loading branch information
Johannes-Sahlmann authored Oct 18, 2019
2 parents 70ec14b + 7c9410a commit 5f2232a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pystortion/distortion.py
Original file line number Diff line number Diff line change
Expand Up @@ -591,7 +591,7 @@ def _set_footprint_grid(self, n_grid=100, remove_masked=True, evaluation_frame_n
self.y_footprint = y_mesh


def plot_distortion_offsets(self, evaluation_frame_number=1, plot_dir=os.environ['HOME'],
def plot_distortion_offsets(self, evaluation_frame_number=1, plot_dir=os.path.expanduser('~'),
name_seed='distortion_offsets', siaf=None, plot_aperture_names=None,
verbose=True):

Expand Down

0 comments on commit 5f2232a

Please sign in to comment.