2 years ago

#55018

test-img

Archie

How can I run a script in Google Drive, which is in G: drive from Python, which is installed in C: drive (Windows 10)?

I have a shared .py script stored in a shared folder in google drive, which for our work machines is mounted on G:. It needs to be run using python, which is installed on C:.

I can see G: in file explorer, however I cannot cd to it from command prompt and I do not think I run the script using python "path-to-script.py" if the script is in a different drive, although I am happy to be proven wrong here.

Is there a way I can let local Python installs access this shared folder? Unfortunately, using git instead of Google Drive is not an option.

Here's what my command prompt would normally look like when I run a script:

C:WINDOWS\System32> python ~\scripts\shared_scripts.py

But since the script lives in G:, not C:, I can't navigate to its location. I hope that makes sense.

python

windows

google-drive-shared-drive

0 Answers

Your Answer

Accepted video resources