r18077 by jghali - #11339: scripter2 should allow to read full path of running script

scribus-commit scribus-commit at lists.scribus.net
Tue Jan 8 22:30:39 UTC 2013


Author: jghali
Date: Tue Jan  8 22:30:39 2013
New Revision: 18077

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=18077
Log:
#11339: scripter2 should allow to read full path of running script

Modified:
    trunk/Scribus/scribus/plugins/scripter/python/scripter_runtime.py

Modified: trunk/Scribus/scribus/plugins/scripter/python/scripter_runtime.py
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=18077&path=/trunk/Scribus/scribus/plugins/scripter/python/scripter_runtime.py
==============================================================================
--- trunk/Scribus/scribus/plugins/scripter/python/scripter_runtime.py (original)
+++ trunk/Scribus/scribus/plugins/scripter/python/scripter_runtime.py Tue Jan  8 22:30:39 2013
@@ -184,8 +184,8 @@
 def run_python(filename, subroutine=None, extension=False):
     if not extension:
         namespace = {
-        __name__: "__scribus__",
-        __file__: filename
+        "__name__": "__scribus__",
+        "__file__": filename
         }
     else:
         namespace = extension_namespace




More information about the scribus-commit mailing list