View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0016210 | Scribus | Scripter | public | 2020-08-13 08:28 | 2020-11-07 14:52 |
Reporter | ale | Assigned To | jghali | ||
Priority | normal | Severity | feature | Reproducibility | N/A |
Status | closed | Resolution | fixed | ||
Fixed in Version | 1.5.6.svn | ||||
Summary | 0016210: Provide a way to get the current script path | ||||
Description | is there a way to get the full path to the current script? i could not find one... | ||||
Tags | No tags attached. | ||||
Patch | No | ||||
|
The current script path is usually provided in Python by __file__ variable. Due to our use of an embedded python interpreter, this variable is however not defined. I've done the necessary modifications so that this variable gets defined when running an external script. |
|
thanks! |
Date Modified | Username | Field | Change |
---|---|---|---|
2020-08-13 08:28 | ale | New Issue | |
2020-08-14 02:50 | jghali | Note Added: 0047930 | |
2020-08-14 02:50 | jghali | Summary | provide (or document) a way to get the current script path => Provide a way to get the current script path |
2020-08-14 02:51 | jghali | Assigned To | => jghali |
2020-08-14 02:51 | jghali | Status | new => resolved |
2020-08-14 02:51 | jghali | Resolution | open => fixed |
2020-08-14 02:51 | jghali | Fixed in Version | => 1.5.6.svn |
2020-08-14 06:01 | ale | Note Added: 0047934 | |
2020-11-07 14:52 | cbradney | Status | resolved => closed |