Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix local relative project dir #1296

Open
wants to merge 3 commits into
base: master
from

Conversation

@stealthycoin
Copy link
Contributor

stealthycoin commented Nov 14, 2019

Fixes #1295

@stealthycoin stealthycoin requested review from jamesls and kyleknap Nov 14, 2019
@codecov-io
Copy link

codecov-io commented Nov 14, 2019

Codecov Report

Merging #1296 into master will increase coverage by <.01%.
The diff coverage is 86.66%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1296      +/-   ##
==========================================
+ Coverage   96.21%   96.21%   +<.01%     
==========================================
  Files          28       28              
  Lines        5305     5312       +7     
  Branches      677      677              
==========================================
+ Hits         5104     5111       +7     
  Misses        130      130              
  Partials       71       71
Impacted Files Coverage Δ
chalice/cli/__init__.py 89.27% <ø> (ø) ⬆️
chalice/cli/reloader.py 80.32% <86.66%> (+2.55%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 79785da...ef72340. Read the comment docs.

@stealthycoin stealthycoin force-pushed the stealthycoin:fix-local-relative-project-dir branch from f1e7a45 to e59f3fb Nov 14, 2019
This removes the --project-dir argument and its following positional arg
before passing to the child process. Since the child process inherits
the parent's working directory, and we already used os.chdir to switch
to the correct one there is no use for this argument anymore. Absolute
paths will not break anythign since they will point to the same
directory. Relative ones will break since they will be appended once
more to CWD (which was already correct). Producing a path with the
relative bit at the end twice.
@stealthycoin stealthycoin force-pushed the stealthycoin:fix-local-relative-project-dir branch from e59f3fb to ef72340 Dec 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

2 participants
You can’t perform that action at this time.