Fix running scripts from URLs
@@ -123,6 +123,12 @@ if "widget" not in os.environ:
filesToRemove = [os.path.join(d,f) for f in os.listdir(d)]
except:
pass
+
+ try:
+ filesToRemove.remove(d+"/Temporary.py")
+ except:
+ pass
+
for f in filesToRemove:
if f.endswith(".repl.py"):
@@ -135,7 +141,7 @@ if "widget" not in os.environ:
def run() -> None:
- pip_directory = os.path.expanduser("~/Documents/modules")
+ pip_directory = os.path.expanduser("~/Documents/site-packages")
Python.shared.isScriptRunning = True
os.chdir(currentDir)
try:
