erg-lang / erg

A statically typed language compatible with Python
http://erg-lang.org
Apache License 2.0
2.69k stars 55 forks source link

Problem of `.pyc` write permission #216

Closed C-BJ closed 1 year ago

C-BJ commented 1 year ago

Describe the bug?

image

Erg version

Erg 0.5.10

Python version

Python 3.10.5

OS

Windows 11

mtshiba commented 1 year ago

same as #163?

C-BJ commented 1 year ago

There is no problem in some directories, but there is a problem in some directories. It seems to be a problem with the .pyc write permission @mtshiba

C-BJ commented 1 year ago

I can solve this problem with administrator permission

C-BJ commented 1 year ago

Can .pyc be automatically deleted at the end of the run (including when it crashes)?

mtshiba commented 1 year ago

Can .pyc be automatically deleted at the end of the run (including when it crashes)?

Done. https://github.com/erg-lang/erg/commit/22857229ee75d7bfae9ea6c8996b5949c26c90ba