Insert src folder at first position of sys.path
This commit is contained in:
1 parent
36d1522f01
commit
fa564c6029
1 file changed
+1
-1
@@ -16,7 +16,7 @@ I don't know anything about).
|
|||||||
"""
|
"""
|
||||||
os.rename(old, os.path.join(basedir, "octoprint.backup"))
|
os.rename(old, os.path.join(basedir, "octoprint.backup"))
|
||||||
|
|
||||||
sys.path.append(os.path.join(basedir, "src"))
|
sys.path.insert(0, os.path.join(basedir, "src"))
|
||||||
|
|
||||||
import octoprint
|
import octoprint
|
||||||
octoprint.main()
|
octoprint.main()
|
||||||
Reference in new issue
Block a user