Skip to content

__file__ returns quoted path string In KLayout IDE #946

@cheng1214

Description

@cheng1214

Hi All,

In my case, _file_ returns "'C:/Users/Rui Cheng/KLayout/salt/siepic_tools/tech/GSiP/pymacros/GSiP Library.lym'", which is seen as invalid path in many cases of Python.

I guess that the issue might be because of the name space of my usename folder? But that issue doesn't exist in my Spyder.

Currently, I have fixed the issue by using _file_[1:-1].

I wondered if anyone could help fix this issue.

Thanking you!

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions