Skip to content

Commit 4d38f8a

Browse files
committed
Fixed bad practice reported by @nzjrs
1 parent b61f2f4 commit 4d38f8a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ Create a *res* folder and pass it to your App class constructor:
362362
```python
363363
class MyApp(App):
364364
def __init__(self, *args):
365-
res_path = os.path.join(os.getcwd(), 'res')
365+
res_path = os.path.join(os.path.dirname(__file__), 'res')
366366
super(MyApp, self).__init__(*args, static_file_path={'res':res_path})
367367
```
368368

0 commit comments

Comments
 (0)