We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6717eab commit 281127cCopy full SHA for 281127c
prelude.py
@@ -1,12 +1,8 @@
1
import sys
2
import os
3
-def add_paths():
4
- pythondir = '/usr/share/gcc/python'
5
- print('add to the python sys.path: '+ pythondir)
6
- sys.path.append(pythondir)
7
- scripts_folder = os.path.dirname(__file__)
8
-
+def add_paths(file_name):
+ scripts_folder = os.path.dirname(file_name)
9
print('add to the python sys.path: '+ scripts_folder)
10
sys.path.insert(0, scripts_folder)
11
12
-add_paths()
+add_paths(__file__)
0 commit comments