pidgin/purple-plugin-pack

Parents 23ed72ab624b
Children b3a21bb65605
Added some code to plugin_pack.py to detect when it's being run from another directory and adjust properly
--- a/plugin_pack.py Sun Aug 03 21:33:47 2008 -0400
+++ b/plugin_pack.py Sun Aug 03 21:34:33 2008 -0400
@@ -590,4 +590,11 @@
printerr('\'%s\' command not found' % (cmd))
if __name__ == '__main__':
+ # this is a work around when we're called for a directory that isn't the
+ # directory that this file is in. This happens during distcheck, as well
+ # as a few other cases that most people won't use ;)
+ if os.path.dirname(__file__) != '':
+ os.chdir(os.path.dirname(__file__))
+
main()
+