New submission from parsa mpsh <parsam...@gmail.com>:

I was testing my program in github workflow and i detected a bug. i was opening 
a file in windows:

```
f = open(os.path.dirname(__FILE__) + '/some/file.txt')
```

means the file path will be `C:\some\path/some/file.txt`.

but i received OSError. why? because in the above path, we have both `/` and 
`\`.

I think this bug should be fixed by converting all of `/`s to `\` in file paths 
automatic.

----------
components: Windows
messages: 388672
nosy: parsampsh, paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: Windows filepath bug
type: behavior
versions: Python 3.10, Python 3.6, Python 3.7, Python 3.8, Python 3.9

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue43491>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to