-
Notifications
You must be signed in to change notification settings - Fork 60
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
Unable to open files from drive other than drive of current working directory #17
Comments
This seems to be something with url = QtCore.QUrl("E:/test/asset.usd")
print url.path()
# /test/asset.usd
url = QtCore.QUrl("file:E:/test/asset.usd")
print url.path()
# E:/test/asset.usd It seems here the value is still good, e.g. |
I'm not on a computer where I can test this right now, but I wonder what happens if we change line 2672 from |
I've made a slight tweak to how the logger is initialized so that your method of launching will work. Previously, it was always getting set back to logging.WARNING as a default unless you launched from the command line and gave flags for argparse to use. If you need something short-term, just delete the I've also got a probable fix for the file:// situation (definitely more involved than my initial one-line suggestion), but I won't be able to test it on a Windows machine until next week. |
Add missing icon for closing the find search bar on Mac and Windows General maintenance Signed-off-by: mds-dwa <[email protected]>
#17) [ENH] Monitor for changes on file system Signed-off-by: mds-dwa <[email protected]>
Release version 0.10.0 addresses the logging note and some other minor maintenance. The Windows file path issue is much more involved and may not be fully resolved yet. I have an alpha version you can test here: https://github.com/dreamworksanimation/usdmanager/tree/issue/17. Feedback and dev contributions are very welcome. |
I'm leaving a small workaround here for this issue in case it helps someone. you can create a windows batch file for usdmanager that changes the directory to the usd file path before loading the usdmanager python file with something like this:
I'm under the impression that if a usdmanager.cmd file exists in the same scripts folder, windows will automatically pick that instead of the one without an extension when a usdmanager command is issued. I think Pixar has done something similar to this for its USD/bin folder. Here's the complete batch file that worked for me:
|
I think the original issue here should be resolved by version 0.11.0 if you want to give it a try. (dev branch) |
Issue
It seems I'm unable to open USD files correctly with USD Manager that are not under the same drive letter on Windows as the current working directory.
This is what I'm doing, say my
cwd
isC:/foo/bar
and I startusdmanager
in Python:Whenever I open a file that is on
C:/
it works "fine"*. However when I open a file fromD:/foo/bar
orP:/projects
it seems USD Manager tries to still prepend the original current working directory drive letter, getting me paths like:It's not really prepending it. It seems the first character is the drive letter of the USD file, then it inserts the drive letter of the current working directory and then it continues the file path.
The same happens when clicking on a reference link inside the .usd file that refers to a USD file on another drive letter.
*Note that I'm saying opening a file on the same drive letter works "fine" however it also seems to insert the current working directory drive letter:
C:C:/foo/bar
but somehow reads the file just fine.I am not sure where this is coming from. I also tried to get the debug logger running but it didn't seem to output any messages whatsoever.
The text was updated successfully, but these errors were encountered: