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

VIAN always changes working directory to its root #390

Open
ghalter opened this issue Feb 18, 2022 · 0 comments
Open

VIAN always changes working directory to its root #390

ghalter opened this issue Feb 18, 2022 · 0 comments
Labels

Comments

@ghalter
Copy link
Collaborator

ghalter commented Feb 18, 2022

Describe the bug

if I do something like this with a relative path:

file_final = "../somerelativepath.eext"
with VIANProject().load_project(file_final) as project:
    project.movie_descriptor.movie_path = movie_file

The file can not be open because the current working directory changes to VIAN's main.py

Due to the os.chdir() in
vian/core/data/settings.py

To Reproduce
Run the code above

Console Log
Copy the last 20 lines in the terminal here.

Expected behavior
Don't change the directory

@ghalter ghalter added the bug label Feb 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant