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

Onedrive domain ending in .us instead of .com #1810

Closed
jreyenga opened this issue Feb 5, 2022 · 0 comments · Fixed by #1811
Closed

Onedrive domain ending in .us instead of .com #1810

jreyenga opened this issue Feb 5, 2022 · 0 comments · Fixed by #1811
Labels
Milestone

Comments

@jreyenga
Copy link

jreyenga commented Feb 5, 2022

OS (e.g. Windows 10 or macOS Sierra)

Windows 10

Versions of xlwings, Excel and Python (e.g. 0.11.8, Office 365, Python 3.7)

0.26.1, Excel version 2201, Python 3.8.8

Describe your issue (incl. Traceback!)

Cannot run xlwings python code in folders synched to onedrive. However our commercial onedrive domain is of the form https://COMPANYNAME-my.sharepoint.us NOT .com

After modifying line 452 in utils.py to:
pattern = re.compile(r'https://[^-]-my.sharepoint.us/[^/]/[^/]/[^/]/(.*)')

I was able to get it to work in our environment. I don't have a code snippet for handling .com AND .us domains, but hopefully that is enough for an easy drop in solution
Capture
.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants