-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0e0fe09
commit f6db71f
Showing
1 changed file
with
22 additions
and
0 deletions.
There are no files selected for viewing
22 changes: 22 additions & 0 deletions
22
spil_hamlet_conf/hamlet_tests/adhoc_tests/sid_from_path_missing.py
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
""" | ||
This doctest from Sid turned out to not work, | ||
because user configuration (~/.spil) contained a different default path, | ||
after a test set it to "server" instead of "local", the factory default. | ||
""" | ||
|
||
from pathlib import Path | ||
from spil import conf, Sid | ||
from spil import log | ||
from resolva import utils as rut | ||
|
||
rut.log.setLevel(10) | ||
|
||
log.setLevel(10) | ||
|
||
path = Path(conf.default_sid_conf_data_path) / "testing/SPIL_PROJECTS/LOCAL/PROJECTS/HAMLET/PROD/ASSETS/char/ophelia/model/v001/char_ophelia_model_WORK_v001.ma" | ||
print(path) | ||
s = Sid(path=path) # path (default config) # TODO: any config | ||
|
||
print(s.uri) | ||
# Sid('asset__file:hamlet/a/char/ophelia/model/v001/w/ma') |