Skip to content

Commit

Permalink
JCF: revert how TARGETDIR is determined since the environment variabl…
Browse files Browse the repository at this point in the history
…e PWD isn't altered by a call to chdir
  • Loading branch information
John Freeman committed Oct 9, 2024
1 parent 38fb5f0 commit 7ea08da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/dbt_create.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@
error(f"You don't have permission to create {TARGETDIR} from {os.getenv('PWD')}. Exiting...")

os.chdir(TARGETDIR)
TARGETDIR=os.getenv('PWD') # Get full path
TARGETDIR=os.getcwd() # Get full path

BUILDDIR=f"{TARGETDIR}/build"
LOGDIR=f"{TARGETDIR}/log"
Expand Down

0 comments on commit 7ea08da

Please sign in to comment.