-
Notifications
You must be signed in to change notification settings - Fork 142
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
failed to detect scriptname on read only file system #49
Comments
It's strange, So, I cannot reproduce your problem on my linux or freebsd servers. Do you have any idea how to detect file existence on nixos ?? |
I tried the method to check if a file exists provided on stackoverflow. This works on my |
The function
os.scriptname
uses rename to detect if a file exists. Rename will always fail on mynixos
machine as the executable lies in a read only file system. Here is the log after addingprint(name, ok, err, code)
to the functionos.path.exists
. Actually file/nix/store/99p0nyqgayic2ipqx2x4lr4njl8f5nrz-python3-3.6.8/bin/realpath
do exist.The text was updated successfully, but these errors were encountered: