Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/gencards.py
diff options
context:
space:
mode:
Diffstat (limited to 'gencards.py')
-rwxr-xr-xgencards.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/gencards.py b/gencards.py
index 555d297..77e9770 100755
--- a/gencards.py
+++ b/gencards.py
@@ -19,7 +19,7 @@
#OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
#THE SOFTWARE.
-import os.path
+import os
from gettext import gettext as _
RED_STROKE = "#FF6040"
@@ -232,5 +232,7 @@ def main():
return 0
if __name__ == "__main__":
+ if not os.path.exists(os.path.join(os.path.abspath('.'), 'images')):
+ os.mkdir(os.path.join(os.path.abspath('.'), 'images'))
generator(os.path.join(os.path.abspath('.'), 'images'))
main()