-
-
Save wookim3/59335ba41533f46a3b20a46fb46a683d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
from omegaconf import DictConfig | |
import hydra | |
@hydra.main() | |
def my_app(_cfg: DictConfig) -> None: | |
print(f"Current working directory : {os.getcwd()}") | |
print(f"Orig working directory : {hydra.utils.get_original_cwd()}") | |
print(f"to_absolute_path('foo') : {hydra.utils.to_absolute_path('foo')}") | |
print(f"to_absolute_path('/foo') : {hydra.utils.to_absolute_path('/foo')}") | |
if __name__ == "__main__": | |
my_app() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment